NETWAYS / ansible-collection-elasticstack

A collection to install and manage the Elastic Stack
GNU General Public License v3.0
11 stars 8 forks source link

Beats Role not Working with logstash output #102

Open thorteschenk opened 1 year ago

thorteschenk commented 1 year ago

I become this error if I want to install beats role with logstash output. With elasticsearch output it works well.

TASK [beats : Configure Filebeat] *** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 'logstash'. 'dict object' has no attribute 'logstash' fatal: [localhost]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'logstash'. 'dict object' has no attribute 'logstash'"}

widhalmt commented 1 year ago

Hi, thanks for the issue.

We'll look into it while we're at releasing the first version. I guess there's something missing from the Readme, because it works in different test setups. So I guess, there's something else missing.

Do you have a group logstash in your inventory? Please remember, that the roles have to run over all hosts in the system. You need to put them in the corresponding groups named after the tool that should be installed on them. This way the roles can connect the services because they know which hosts to target.

widhalmt commented 1 year ago

ref/NC/767305

thorteschenk commented 1 year ago

Sorry it was an config failure on my side. We can close the issue.