Skip to content

es_hosts parameter of ElastAlert2 #45

@niek1992

Description

@niek1992

Hi,

First of all, amazing work you've done. I am currently using it for my Thesis and really like the GUI that integrates with ES as an application. I run everything in Docker, with two nodes in the Elasticsearch cluster. But i noticed something that doesn't work as expected.

I started with using es_host in elastalert2-server/config.json as a single node. However i'd like to have a bit more redundancy when the first host somehow timed out or lost network connection. For this i'd need to configure es_hosts as a parameter in config.json OR add an environment variable named ES_HOSTS that contain these values. ElastAlert2 added support Starting from ElastAlert2 2.2.3 for this parameter, and commit 8327d41b545ae3b3d2bbc6843f931ea449f3d265 to this repository added support for 2.3.0.

However, adding it as a parameter yields a "unsupported parameter es_hosts in config.json" when starting the container. The container properly starts when i enter the two nodes in the es_host parameter, but assuming it only use a single host (as that is what the docs of ElastAlert2 say).

Setting an environment variable with the key of ES_HOSTS with a value of the two nodes works, but i'd like to configure it in the ElastAlert2-server configuration. I've scrolled through the source-code a bit, but assuming there need to be an extra field called es_hosts in this and this file. If you want i can create a pull request however am limited in time as i am doing my Thesis (and are waaayy behind schedule as well).

If this is intended behaviour, then please discard this issue.

With kind Regards,

Niek

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions