Categories
API python

Building a rest API client or SDK as a python package

The best way to learn ways of building your API wrapper / SDK is to build it yourself from scratch is to look at ones that already exist. Here is a list of python api wrappers you can checkout and view. Most if not all of them are already python packages. Here is a good […]

Categories
django GNU/Linux

Upgrading SQLite on CentOS to 3.8.3 or Later

Let me guess you are using django and may have just done an upgrade to django 2.2.x or 3.x in order to stay up to date and have the latest security updates. However you now have this exception to deal with… ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17) This means you will need […]

Categories
auto-remediation DevOps

Introduction to Alerta: Open Source Aggregated Alerts

There are a number of platforms available these days to assist operations in terms of dealing with alerts. Namely Pagerduty, VictorOps and OpsGenie. These are unfortunately pay for tools. These tools are known as monitoring aggregation I was looking through the integrations of elastalert and found that there is an integration for alerta.io, so I […]

Categories
Uncategorized

Allowing unverified HTTP Post’s by Elastalert

I am using Praeco as a frontend for the Elastalert API which relies on Elastalert. The problem I faced was that sending unverified requests failed, as elastalert didn’t allow verfiy=False. I searched the Elastalert code and found the place the request is being made, it is in alerts.py file, the class HTTPPostAlerter. I changed: response […]

Categories
ChatOps

The actual elastalert code running in Praeco Elastalert

If you go into the docker instance there will be 3 seperate versions of the code: / # find . -name alerts.py ./opt/elastalert/build/lib/elastalert/alerts.py ./opt/elastalert/elastalert/alerts.py ./usr/lib/python2.7/site-packages/elastalert-0.1.39-py2.7.egg/elastalert/alerts.py   The one that is actually running elastalert is: /opt/elastalert/elastalert/alerts.py