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][Checkpoint module] field [@timestamp] already exists #19938

Closed
Bernhard-Fluehmann opened this issue Jul 15, 2020 · 6 comments · Fixed by #21344
Closed

[Filebeat][Checkpoint module] field [@timestamp] already exists #19938

Bernhard-Fluehmann opened this issue Jul 15, 2020 · 6 comments · Fixed by #21344
Labels
Filebeat Filebeat

Comments

@Bernhard-Fluehmann
Copy link
Contributor

Bernhard-Fluehmann commented Jul 15, 2020

One of a customer reported the following error when using the filebeat checkpoint module:
error.message: field [@timestamp] already exists

This seems to be related to how the ingest pipeline sets the timestamps, especially when the log contains a checkpoint.time field. Since none of the logs of test/checkpoint.log contains this field, the problem may not appear in the unit tests.

https://github.com/RealStuff/beats/tree/checkpoint-fix contains a fix for the problem.
Basically it renames the @timestamp field created by filebeat to event.created. In addition, rename processors were replaced by date processors to create the final @timestamp field.

Please let me know what you think about this fix. If you find it usable, I will create a pull request.

For confirmed bugs, please report:

  • Version: 7.8
  • Operating System: CentOS
  • Discuss Forum URL:
  • Steps to Reproduce: Send checkpoint log containing time field to filebeat checkpoint module.
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 15, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 16, 2020
@andrewkroh andrewkroh added the Filebeat Filebeat label Jul 16, 2020
@Bernhard-Fluehmann Bernhard-Fluehmann changed the title [Filebeat][Checkpoint modlue] field [@timestamp] already exists [Filebeat][Checkpoint module] field [@timestamp] already exists Aug 11, 2020
@hazcod
Copy link
Contributor

hazcod commented Aug 11, 2020

I am seeing this on my fresh elastic 7.8 cluster too. @Bernhard-Fluehmann thank you for the fork, can you please open up a PR?

@P1llus
Copy link
Member

P1llus commented Aug 11, 2020

I will try to take a look at this as well, timestamp should have been either overwritten or grabbed from the syslog header, but might be some niche cases.

@Bernhard-Fluehmann
Copy link
Contributor Author

@hazcod Thank you for your report
@P1llus I have just created a pull-request with a fix and description of the problem. Please let me know if you need more information

@bevano8
Copy link

bevano8 commented Aug 18, 2020

@Bernhard-Fluehmann Will this be fixed in the next filebeat release? Whether its 7.8.2 or 7.9?

@Bernhard-Fluehmann
Copy link
Contributor Author

@bevano8 I hope in 7.9 but it depends on Elastic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Filebeat Filebeat
Projects
None yet
7 participants