Elasticsearch host error #155
-
Hi, I have an elk setup on GKE and I'm trying to use elastalert for sending notifications on error logs. I'm new to elastalert, I just followed your README doc on this URL https://github.com/jertel/elastalert2/tree/master/chart/elastalert2. after deploying the elastalert2 helm chart, elastalert pod is failing to connect with the existing elasticsearch deployment. I did not change any of the values from values.yaml except for rules, because the existing elasticsearch deployment's service name is elasticsearch itself and the port is 9200 which are same as values.yaml . the error log from elastalert pod is: Traceback (most recent call last): Could you tell me what I'm doing wrong here? thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
It appears that the pod didn't get the config file mapped correctly. Use kubectl to exec into the elastalert2 pod and inspect the /opt structure. There should be a file located at PS, I moved this to a discussion since it doesn't follow the definition of an Elastalert2 issue. |
Beta Was this translation helpful? Give feedback.
It appears that the pod didn't get the config file mapped correctly. Use kubectl to exec into the elastalert2 pod and inspect the /opt structure. There should be a file located at
/opt/elastalert/config.yaml
with the Elastic host/port etc.PS, I moved this to a discussion since it doesn't follow the definition of an Elastalert2 issue.