diff --git a/docs/source/running_elastalert.rst b/docs/source/running_elastalert.rst index a0d643837..9d1b3676d 100644 --- a/docs/source/running_elastalert.rst +++ b/docs/source/running_elastalert.rst @@ -123,7 +123,7 @@ Running ElastAlert There are two ways of invoking ElastAlert. As a daemon, through Supervisor (http://supervisord.org/), or directly with Python. For easier debugging purposes in this tutorial, we will invoke it directly:: - $ python -m elastalert.elastalert --verbose --rule example_frequency.yaml + $ python -m elastalert.elastalert --verbose --rule example_frequency.yaml # or use the entry point: elastalert --verbose --rule ... No handlers could be found for logger "elasticsearch" INFO:root:Queried rule Example rule from 1-15 14:22 PST to 1-15 15:07 PST: 5 hits INFO:elasticsearch:POST http://elasticsearch.example.com:14900/elastalert_status/elastalert_status?op_type=create [status:201 request:0.025s] diff --git a/supervisord.conf.example b/supervisord.conf.example index 35c729680..efce01fc9 100644 --- a/supervisord.conf.example +++ b/supervisord.conf.example @@ -16,9 +16,12 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface serverurl=unix:///var/run/elastalert_supervisor.sock [program:elastalert] +# running globally command = python elastalert.py --verbose +# (alternative) using virtualenv +# command=/path/to/venv/bin/elastalert --config /path/to/config.yaml --verbose process_name=elastalert autorestart=true startsecs=15 @@ -27,4 +30,3 @@ stopasgroup=true killasgroup=true stderr_logfile=/var/log/elastalert_stderr.log stderr_logfile_maxbytes=5MB -