4 ms·
Do you use Logstash to push to statsd for software that don't support statsd? I have a HAProxy instance I want to log into something like influxdb.
by kawsper 12y ago
Do you use Logstash to push to statsd for software that don't support statsd?
I have a HAProxy instance I want to log into something like influxdb.
- eloycoto 12y agoHi, No :-(, all the software that I use is python, and Kamailio servers. So I didn't have this problem. I can't help in this case. Sorry
- tehno 12y agoYou can quite easily do that with Mozilla Heka [1] and a bit of Lua scripting. Recently a haproxy log decoder was posted here - https://gist.github.com/victorcoder/4b9bea9ade7671fcea75 https://gist.github.com/victorcoder/4b9bea9ade7671fcea75 So in Heka set up an input (LogStreamer for example), and use that haproxy decoder script (as SandboxDecoder) with it. After that pass it through any filters you'd like (like StatFilter) and output collected stats with HTTP output + influxdb encoder. (I just built a log parsing and stats collecting pipeline for our Heroku apps with haproxy + heka + influxdb + grafana. So far happy with the result.) [1] https://hekad.readthedocs.org/ https://hekad.readthedocs.org/