Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winlogbeat 7.4.2 does not need elastic and logstash port #3

Open
pierreyvesv opened this issue May 27, 2021 · 0 comments
Open

winlogbeat 7.4.2 does not need elastic and logstash port #3

pierreyvesv opened this issue May 27, 2021 · 0 comments

Comments

@pierreyvesv
Copy link

pierreyvesv commented May 27, 2021

Otherwise it may end up being automatically closed by our bot. -->

SUMMARY

winlogbeat 7.4.2 will not start if logstash.port or elasticsearch.port is configured. it is not required anymore and has to be removed from the template so that the service winlogbeat start on windows:

ISSUE TYPE
  • Bug Report
ANSIBLE VERSION
STEPS TO REPRODUCE

playbook:

- name: install elastic beat exporter on windows server
  hosts: all
  roles:
    - role: winlogbeat

      vars:
        winlogbeat_output: logstash
        logstash:
          host: [ 'logstash_hostname' ]

in winlogbeat.yml.j2 remove "port" to have elastic service started correctly.

{% if winlogbeat_output == "elasticsearch" %}
  hosts: ["{{ elasticsearch.host }}"]
  port: {{ elasticsearch.port }}
{% elif winlogbeat_output == "logstash" %}
  hosts: ["{{ logstash.host }}"]
  port: {{ logstash.port }}
EXPECTED RESULTS
TASK [winlogbeat : Start a service] ***************************************************************************
changed: [servername]
ACTUAL RESULTS
TASK [github_winlogbeat : Start a service] ********************************************************************
fatal: [servername]: FAILED! 
=> {"changed": false, "exists": false, "msg": "failed to start service from paused state winlogbeat: 
Service 'winlogbeat (winlogbeat)' resume failed."}

here is the error log from winlogbeat on windows:

2021-05-27T11:37:34.403+0200	INFO	instance/beat.go:292	Setup Beat: winlogbeat; Version: 7.4.2
2021-05-27T11:37:34.403+0200	INFO	instance/beat.go:385	winlogbeat stopped.
2021-05-27T11:37:34.445+0200	ERROR	instance/beat.go:878	Exiting: error initializing publisher: 1 error: setting 'output.logstash.port' has been removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant