-
Notifications
You must be signed in to change notification settings - Fork 178
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
Incorrect prospector template #28
Comments
Is Filebeat not starting correctly or not parsing the files correctly? Both formats are valid YAML arrays, but not all YAML parsers are the same. It's not hard to fix, but I want to make sure that there isn't some other error going on with the config file. Any chance you can include the relevant part of your manifest that's creating the config file example you included? |
There's a chance that this is caused because the lines weren't wrapped in quotes. Could you try the include_exclude_fix branch to see if that works as expected too? |
Filebeat is not parsing the file correctly in the sense that it includes all of the entries in syslog, not just the ones in include_lines.
Second try did job
I did not had the time to test the other branch. |
I should have noticed the issue earlier - do you have any idea where the square brackets around "randomword" are coming from? They're not in the template, so I'm not sure where they're coming from. Do you know what version of filebeat you're using, and a copy of the test manifest might help too since I'm not able to re-create the issue. |
The square brackets came from my declaration and it seems that it was the problem
|
I think that the square brackets made the YAML parser think that each line was an array. Wrapping the lines in quotes should help with that, so I'll merge in the branch as extra protection against problems like this in the future. Thanks for helping find a weak point. |
Hello and thanks for your great module!
I tried to use "include_lines" without succes because the prospector template defines it as
When I switched the syntax to the one from the official documentation it filtered the log accordingly.
https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html
Ca you please check it out.
Thanks!
The text was updated successfully, but these errors were encountered: