elastalert-create-index: not found error when running ElastAlert2 as a docker container. #1431
Replies: 1 comment 1 reply
-
The documentation describes how to start ElastAlert2 via Docker. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to run elastalert2 as a docker container and passing the configuration files and rules folder as a bind mount. Here is the command below
docker run --net=es_default -d --name elastalert --restart=always --mount type=bind,source=/elastalert/config/config.yaml,target=/opt/elastalert/config.yaml --mount type=bind,source=/elastalert/rules,target=/opt/elastalert/rules --mount type=bind,source=/elastalert/bin,target=/usr/local/bin ghcr.io/jertel/elastalert2/elastalert2 --verbose
But the docker container is not starting. When we check the docker logs it shows :
/opt/elastalert/run.sh: 3: elastalert-create-index: not found
.The config,yaml are as follows:
`es_host: eshost
es_port: 9200
#es_username:
es_api_key: "api_key"
verify_certs: False
use_ssl: True
ssl_show_warn: True
writeback_index: elastalert_status
writeback_alias: elastalert_alerts
alert_time_limit:
days: 2
rules_folder: ./rules
run_every:
minutes: 5
buffer_time:
minutes: 15
`
Beta Was this translation helpful? Give feedback.
All reactions