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

Zeek ingest pipeline ignores millisecond in the timestamp #14599

Closed
inqueue opened this issue Nov 18, 2019 · 2 comments · Fixed by #16766
Closed

Zeek ingest pipeline ignores millisecond in the timestamp #14599

inqueue opened this issue Nov 18, 2019 · 2 comments · Fixed by #16766
Assignees
Labels

Comments

@inqueue
Copy link
Member

inqueue commented Nov 18, 2019

  • Version: Filebeat 7.4.2
  • Operating System: n/a

Zeek logs may have milliseconds in the timestamp like this: 1573757353.774572. When it happens, the statement ctx['@timestamp'] = (long)ctx['zeek']['notice']['ts'] * 1000; turns the value into 1573757353000.

Making the statement ctx['@timestamp'] = (long)(ctx['zeek']['notice']['ts'] * 1000) solves the issue.

@andrewkroh

@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@andrewkroh
Copy link
Member

It looks like the latest version in master does the conversion in a slightly different manner.

"date": {
"field": "zeek.connection.ts",
"formats": ["UNIX"]
}
},

And it does preserve the milliseconds part of the timestamp:

So we might just want to backport these latest changes to 7.5 and 7.x.

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

Successfully merging a pull request may close this issue.

4 participants