Checkpoint | support unix and unix_ms ts for time field - #4781
Merged
Conversation
🌐 Coverage report
|
|
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
P1llus
approved these changes
Dec 8, 2022
P1llus
left a comment
Member
There was a problem hiding this comment.
Once the question is answered or fixed then we can merge
| - convert: | ||
| field: checkpoint.time | ||
| type: long | ||
| ignore_failure: true |
Member
There was a problem hiding this comment.
Do we really want ignore failure here? Is there no other if condition we can use?
Contributor
Author
There was a problem hiding this comment.
Certainly, let me change 👍🏼
Contributor
Author
There was a problem hiding this comment.
Removed the convert and date processors and written some painless to parse all 3 date formats. Let me know if that looks good.
|
Package checkpoint - 1.9.1 containing this change is available at https://epr.elastic.co/search?package=checkpoint |
orestisfl
pushed a commit
to orestisfl/integrations
that referenced
this pull request
May 15, 2026
* support unix and unix_ms ts for time field * zoned dt * remove convert and date processor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds support for having
checkpoint.timefield asUNIX_MS.Just adding
UNIX_MSformat to existing formats indateprocessor here doesn't work as there is no check done on DateProcessor whether the value is seconds or milliseconds. This makes the currentdateprocessor continues to matchUNIXformat even for millisecond epoch values.Alternate approach to check the number of digits of
checkpoint.timeis taken to resolve this issue.Checklist
changelog.ymlfile.