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

Need to fix some params as Integer in Redis output #38

Closed
metrax opened this issue Aug 10, 2016 · 1 comment
Closed

Need to fix some params as Integer in Redis output #38

metrax opened this issue Aug 10, 2016 · 1 comment
Labels

Comments

@metrax
Copy link

metrax commented Aug 10, 2016

Please add these lines to the template:

<%- if @filebeat_config['output']['redis']['db'] -%>
<%- @filebeat_config['output']['redis']['db'] = Integer(@filebeat_config['output']['redis']['db']) -%>
<%- end -%>
<%- if @filebeat_config['output']['redis']['db_topology'] -%>
<%- @filebeat_config['output']['redis']['db_topology'] = Integer(@filebeat_config['output']['redis']['db_topology']) -%>
<%- end -%>
<%- if @filebeat_config['output']['redis']['timeout'] -%>
<%- @filebeat_config['output']['redis']['timeout'] = Integer(@filebeat_config['output']['redis']['timeout']) -%>
<%- end -%>
<%- if @filebeat_config['output']['redis']['reconnect_interval'] -%>
<%- @filebeat_config['output']['redis']['reconnect_interval'] = Integer(@filebeat_config['output']['redis']['reconnect_interval']) -%>
<%- end -%>

Else filebeat cannot start:

Aug 10 16:52:04 robert2 filebeat[44273]: Loading config file error: YAML config parsing failed on /etc/filebeat/filebeat.yml: yaml: unmarshal errors:
Aug 10 16:52:04 robert2 filebeat[44273]: line 15: cannot unmarshal !!str 0 into int
Aug 10 16:52:04 robert2 filebeat[44273]: line 16: cannot unmarshal !!str 1 into int
Aug 10 16:52:04 robert2 filebeat[44273]: line 17: cannot unmarshal !!str 5 into int
Aug 10 16:52:04 robert2 filebeat[44273]: line 18: cannot unmarshal !!str 1 into int. Exiting.

@pcfens pcfens added the bug label Aug 10, 2016
@pcfens pcfens closed this as completed in 5075cb9 Aug 10, 2016
@pcfens
Copy link
Owner

pcfens commented Aug 10, 2016

Thanks for this. I've pushed a release with the fix to the forge as v0.7.4.

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