Powershell the events stats logstash


(Peter Cowen) #1

I wonder if you can help,

Has anyone build a powershell that connects to the logstash monitoring API to get events in stats and then checks whether the events in is less than what it was x minutes ago and if it is send a email and restart logstash.

The idea is to create an ELK stack that is somewhat foolproof without spending money.


(Magnus Bäck) #2

You want to restart Logstash just because it's processing fewer events than X minutes ago?


(Peter Cowen) #3

I would like to be able to restart logstash if logstash has stopped processing any new events. I do have logstash pinging redis every 30 seconds. Is there a way I can use this to determine if no new events are being collected?


(Magnus Bäck) #4

I do have logstash pinging redis every 30 seconds.

What do you mean by this?


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.