Introduction After noticing that logstash now has a http_poller plugin and the fact that Telldus Live provides a JSON API i thought getting the data into elasticsearch for graphing in Kibana would be a piece of cake. It turns it wasn’t really piece of cake but I took the time to piece together the challenges […]
Category Archives: Technical
Keep track of your Zimbra 8.7+ server with an ELK stack
Kibana graphs are extremely useful for keeping track of server health! So why not use it to keep track of your Zimbra server? This article describes how to set up grok filters for parsing email relay (inbound, outbound, internal etc.) and spam rejection in the new and awesome postscreen which has really cleaned up spam […]
Sending dicts, lists etc. as arguments to a fabric task using json
A quick tip if you need to send more complex objects than strings to a fabric task. It’s basically just a matter of proper escaping and using python’s json library to parse. Keep in mind: Put single quotes around the “argument” (the whole json string) and use doublequotes in the json structure itself Escape all […]
Python Script to clean out old elasticsearch indices
Below you will find a simple python script that can be used together with crontab or manually to clear out old daily elasticsearch indices. You just need to specify the index name and how many days back (from today) that you want to remove. Example use to delete syslog indices older than 90 days: python […]