Yelp / elastalert

Easy & Flexible Alerting With ElasticSearch
https://elastalert.readthedocs.org
Apache License 2.0
8k stars 1.74k forks source link

How to run Elastalert as a Windows service #600

Open AviralSri opened 8 years ago

AviralSri commented 8 years ago

Hello everybody,

Is there any way to run elastalert as a service on a Windows environment.

I am trying using Cygwin to run supervisord as a Windows service, which should run elastalert. But I am not able to understand how to write in supervisord.conf file to run elastalert.

Or if there is any workaround please share.

phermann1988 commented 8 years ago

try to write a batch file to start the rule and wrap it with NSSM as a windows service.

jocooler commented 6 years ago

More details on the NSSM method: https://stackoverflow.com/a/46450007/2661831 . Worked pretty well for me.