Change renaming @timestamp to copying values in Ingest pipelines#29425
Change renaming @timestamp to copying values in Ingest pipelines#29425kvch merged 2 commits intoelastic:masterfrom
@timestamp to copying values in Ingest pipelines#29425Conversation
|
This pull request doesn't have a |
|
This pull request does not have a backport label. Could you fix it @kvch? 🙏
NOTE: |
| - set: | ||
| copy_from: "@timestamp" | ||
| field: "event.created" | ||
| ignore_empty_value: true |
There was a problem hiding this comment.
ignore_empty_value only has an effect when using value. With copy_from you'd need an if to achieve a similar behavior. Or you can ignore_failure to continue if @timestamp does not exist.
There was a problem hiding this comment.
After sleeping on it, I realized that we should not ignore empty values. If @timestamp is missing that is an error.
❕ Build Aborted
Expand to view the summary
Build stats
Test stats 🧪
Steps errors
Expand to view the steps failures
|
What does this PR do?
This PR changes renaming
@timestampfields in Ingest pipelines to copying them.Why is it important?
Filebeat sends events to data streams now. However, data streams require
@timestampfields in every event. Some Ingest pipelines either get rid of or on failure@timestampis missing from events. This is a problem and the event cannot be indexed.Checklist
- [ ] I have commented my code, particularly in hard-to-understand areas- [ ] I have made corresponding changes to the documentation- [ ] I have made corresponding change to the default configuration files- [ ] I have added tests that prove my fix is effective or that my feature worksCHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.