-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Beats type as prefix: Change default behavior to disable #6068
Comments
Ref #5542 Possible routes we could go:
|
We also have to think about backwards compatibility if we should change the default. For example if there is anything that will break for existing users. |
re: #5542 - I agree with the comment in #5905, the assignment of source is wrong in the default filebeat behavior. It muddies the waters when trying to separate out hosts, files, and services within logs. Providing a template with actions that make the agent behave in a more civilized manner is nice. Re: the standard reassignment of the field. I would agree with defaulting the source field to something like source_file for filebeat and source_host for winlogbeat. Maybe source_type would be generic enough for both? |
Maybe this is old news to you, but I noticed that Beats 7 doesn’t have the So the old versions need to handled somehow, but apart from that it further supports the proposal to drop the prefix. |
Yeah and it seems that all messages on hosts that are running Beats 7+ are now coming in source:unknown. Whereas beats 6 senders are still showing source:hostname. Been reading docs and searching issues trying to figure out how to make graylog happy with the beats 7 senders...but haven't found anything explaining how to address this source:unknown issue. Would be nice to have this topic documented on the graylog end (how to deal with beats 6 vs 7 senders in terms of getting source set right). The workaround I came up for here was just to manually re-add the source field on the beats sender end (e.g. in filebeat.yml or journalbeat.yml or whatever). processors:
- add_fields:
target: '' # top level
fields:
source: <insert hostname or whatever here> Since these files are templated by our infra provisioning anyway, inserting the hostname or whatever we want is not a big deal. This resolves the issue of many of our hosts being grouped under source:unknown in graylog. Would be cool if on the beats (or other) input config on graylog we could specify an arbitrary key/field to use as the source. |
Expected Behavior
The fields sent by the Beats agent should be sent as they are ingested rather than adding an annotation to the field name (prefix).
Unless the customer explicitly desires this behavior.
Context
If I load a custom Beats configuration that normalized the data fields, or if I want to normalize my data based on the already standardized fields of the Beats agents, adding a prefix be default is not useful or desired.
This also incurs a higher metadata cost to the customer as the number of fields in a single message (especially for Winlogbeat) can be very numerous. Adding 7 bytes per field per message multiplied across the total number of logs can add up to a lot of data wasted.
Your Environment
The text was updated successfully, but these errors were encountered: