Graylog2 / graylog-ansible-role

Ansible role which installs and configures Graylog
Apache License 2.0
212 stars 127 forks source link

Elasticsearch fails on XPack setup #122

Closed vineethvijay-MyT closed 2 years ago

vineethvijay-MyT commented 4 years ago

Error:

TASK [elastic.elasticsearch : fail when api credentials are not declared when using security] ************************************************************************************
fatal: [es_main]: FAILED! => {"changed": false, "msg": "Enabling security requires an es_api_basic_auth_username and es_api_basic_auth_password to be provided to allow cluster operations"}

For fix, adding this to the vars :

es_enable_xpack: true
es_xpack_features: ["monitoring"]
malcyon commented 2 years ago

This is more about configuring Elasticsearch, so I'm not sure if we'd need to change anything in the Graylog role for this.