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

Filebeat elasticsearch module uses datastream constant_keyword Fields #30642

Open
mag-mkorn opened this issue Mar 2, 2022 · 5 comments
Open
Labels
bug Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@mag-mkorn
Copy link

In version 8.x the filebeat elasticsearch module writes data to the following fields:

  • data_stream.dataset
  • data_stream.namespace
  • data_stream.type

These fields are mapped with type constant_keyword, which results in wrong information for subsequent events as filebeat does not use dedicated datastreams per input, like the agent does.

AFAIK these fields should not be used by beats.

The beats test files can be used as example:
https://github.com/elastic/beats/blob/main/filebeat/module/elasticsearch/deprecation/test/es_deprecation-json.800.log-expected.json

As a workaround I changed the mapping in the template to keyword.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Mar 2, 2022
@kvch kvch added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Mar 2, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Mar 2, 2022
@kvch kvch added the bug label Mar 2, 2022
@botelastic
Copy link

botelastic bot commented Mar 2, 2023

Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Mar 2, 2023
@mag-mkorn
Copy link
Author

Still relevant in 8.6.2.

@botelastic botelastic bot removed the Stalled label Mar 2, 2023
@botelastic
Copy link

botelastic bot commented Mar 1, 2024

Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Mar 1, 2024
@mag-mkorn
Copy link
Author

Still relevant.

@botelastic botelastic bot removed the Stalled label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

No branches or pull requests

3 participants