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

Windows failing configtest #59

Closed
pellefrykman opened this issue Nov 23, 2016 · 2 comments
Closed

Windows failing configtest #59

pellefrykman opened this issue Nov 23, 2016 · 2 comments
Labels

Comments

@pellefrykman
Copy link

I am using this module, version 0.8.6 and deploy FileBeat to a Windows Server 2012 R2 machine. The init.pp file is as follows:
class { 'filebeat':
outputs => {
'logstash' => {
'hosts' => [
'logstash1a:47001'
],
},
},
}

The deployed FileBeat version is 1.3.1 (386) and the filebeat.yml file contains the following output section:
#----------------------------- Logstash output --------------------------------
output.logstash:
hosts:
- logstash1a:47001

When running filebeat.exe -configtest filebeat.yml I get the following result:
Error Initialising publisher: No outputs are defined. Please define one under the output section.

Changing the filebeat.yml file to
#----------------------------- Logstash output --------------------------------
output:
logstash:
hosts:
- logstash1a:47001
makes the configtest pass.

I have puppet agent version 3.8.7 on the Windows Server and puppet master version 3.8.7 on Ubuntu 14.04.

@pcfens
Copy link
Owner

pcfens commented Nov 23, 2016

It looks like the module is pushing the filebeat 5 config template out to windows boxes. I suspect this will get fixed if you set the major_version parameter to 1.

Ultimately extending the filebeat_version fact should fix this too, but I don't have a windows dev environment ready to go to test everything.

@pellefrykman
Copy link
Author

Yes, setting major_version to 1 worked fine. I was expecting the module to install Filebeat 5 if the default config format was version 5 compliant. I have a good Windows Environment, though I am a newbie when it comes to contributing on these kinds of projects. Let me know if I can assist in the development of this module in any way.

@pcfens pcfens added the bug label Nov 30, 2016
@pcfens pcfens closed this as completed in 1b6b4ef Jan 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants