1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/elastalert/README.md

29 lines
881 B
Markdown
Raw Normal View History

2018-08-01 08:03:18 +00:00
ElastAlert
==========
2019-07-17 03:56:47 +00:00
[ElastAlert][1] is a simple framework for alerting on anomalies, spikes, or other
patterns of interest from data in Elasticsearch.
## up and running
2018-08-01 08:03:18 +00:00
```bash
2019-10-30 10:57:53 +00:00
$ docker-compose run --rm elastalert sh
2019-10-30 15:40:46 +00:00
>>> curl -X DELETE http://elasticsearch:9200/elastalert_*
2019-10-30 10:57:53 +00:00
>>> elastalert-create-index --config config.yaml
2019-10-30 15:40:46 +00:00
>>> elastalert-test-rule --config config.yaml --alert rules/example.yaml
2018-08-01 08:03:18 +00:00
>>> exit
2019-10-30 12:04:37 +00:00
2019-10-30 10:57:53 +00:00
$ docker-compose up -d
2019-10-30 12:04:37 +00:00
$ docker-compose logs -tf
2019-10-30 15:40:46 +00:00
Attaching to elastalert_elastalert_1
elastalert_1 | 2019-10-30T13:53:46.193793451Z bad things happen
elastalert_1 | 2019-10-30T13:58:45.855636764Z bad things happen
elastalert_1 | 2019-10-30T14:03:46.444137134Z bad things happen
2018-08-01 08:03:18 +00:00
```
2019-07-17 03:56:47 +00:00
> ElastAlert will also load new rules, stop running missing rules, and restart
> modified rules as the files in this folder change.
[1]: http://elastalert.readthedocs.io/en/latest/