Skip to content

Commit

Permalink
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/running_elastalert.rst
Original file line number Diff line number Diff line change
@@ -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]
4 changes: 3 additions & 1 deletion supervisord.conf.example
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bd907b7

Please sign in to comment.