-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Don't override user-supplied data_stream fields #24683
Comments
Pinging @elastic/agent (Team:Agent) |
this is a good catch, I think we all the |
Hi! We're labeling this issue as |
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Hi! We're labeling this issue as |
@ruflin do these PRs also address this issue? |
It doesn't directly, but it can solve it. The problem today is that an We could take this to the next level that Filebeat already sends the data based on the field to the correct data stream? All the features for this already exist in Filebeat, see index settings here: https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#index-option-es |
++ to both of these statements |
Hi! We're labeling this issue as |
While adding support for
data_stream.dataset
anddata_stream.namespace
fields for ECS loggers (elastic/ecs-logging#38). I noticed that Filebeat overrides the fields with the static value from the integration policy rather than using the fields from the log events. That happens even though the input settingjson.override_keys
is set totrue
.I do think we'd want users to define the dataset in their ECS logging configuration for several reasons:
event.dataset
configurable which is used for the log anomaly ML job. Couldn't we use that to set thedata_stream.dataset
? No, we can't: Theevent.dataset
anddata_stream.dataset
fields should always have the same values. However, thedata_stream.dataset
imposes more restrictions on the allowed characters (as it ends up as a part of the index name). Thus, we can't use the values ofevent.dataset
fordata_stream.dataset
.The text was updated successfully, but these errors were encountered: