Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…05216) # Backport This will backport the following commits from `main` to `8.x`: - [[Automatic Import] add timestamp to ECS constants (#204931)](#204931) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Hanna Tamoudi","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-27T17:24:02Z","message":"[Automatic Import] add timestamp to ECS constants (#204931)\n\n## Summary\r\n\r\nEnsure mapping contains `@timestamp` field whenever possible.\r\nhttps://github.com//issues/196040\r\n\r\nTested cases:\r\n| test case | has `@timestamp` | is expected result |\r\n|---|---|---|\r\n| sample logs with datetime value for `time` and `expires` fields | yes\r\n(picked `time` as `@timestamp`) | ✅ |\r\n| sample logs with datetime value for `expires` field only | no | ✅ |\r\n| sample logs with no datetime values | no | ✅ |\r\n| sample logs with `created_at` field that does not contain datetime\r\nvalue | no | ✅ |\r\n\r\n\r\nTested values for `time` field:\r\n\r\n| value | match correctly `@timestamp` |\r\n|---|---|\r\n| `2024-02-24T06:56:50.648137154Z` | ✅ |\r\n| `10/01/2023 12:34:56` | ✅ |\r\n| `01-10-2023 12:34:56` | ✅ |\r\n| `Thu, 25 December 2023 10:15:00GMT` | ✅ \r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Ilya Nikokoshev <[email protected]>","sha":"4cc6952c83de1bd7eacd95c458bbe6c281b364b0","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","backport:prev-minor","Team:Security-Scalability","Feature:AutomaticImport"],"title":"[Automatic Import] add timestamp to ECS constants","number":204931,"url":"https://github.com/elastic/kibana/pull/204931","mergeCommit":{"message":"[Automatic Import] add timestamp to ECS constants (#204931)\n\n## Summary\r\n\r\nEnsure mapping contains `@timestamp` field whenever possible.\r\nhttps://github.com//issues/196040\r\n\r\nTested cases:\r\n| test case | has `@timestamp` | is expected result |\r\n|---|---|---|\r\n| sample logs with datetime value for `time` and `expires` fields | yes\r\n(picked `time` as `@timestamp`) | ✅ |\r\n| sample logs with datetime value for `expires` field only | no | ✅ |\r\n| sample logs with no datetime values | no | ✅ |\r\n| sample logs with `created_at` field that does not contain datetime\r\nvalue | no | ✅ |\r\n\r\n\r\nTested values for `time` field:\r\n\r\n| value | match correctly `@timestamp` |\r\n|---|---|\r\n| `2024-02-24T06:56:50.648137154Z` | ✅ |\r\n| `10/01/2023 12:34:56` | ✅ |\r\n| `01-10-2023 12:34:56` | ✅ |\r\n| `Thu, 25 December 2023 10:15:00GMT` | ✅ \r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Ilya Nikokoshev <[email protected]>","sha":"4cc6952c83de1bd7eacd95c458bbe6c281b364b0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204931","number":204931,"mergeCommit":{"message":"[Automatic Import] add timestamp to ECS constants (#204931)\n\n## Summary\r\n\r\nEnsure mapping contains `@timestamp` field whenever possible.\r\nhttps://github.com//issues/196040\r\n\r\nTested cases:\r\n| test case | has `@timestamp` | is expected result |\r\n|---|---|---|\r\n| sample logs with datetime value for `time` and `expires` fields | yes\r\n(picked `time` as `@timestamp`) | ✅ |\r\n| sample logs with datetime value for `expires` field only | no | ✅ |\r\n| sample logs with no datetime values | no | ✅ |\r\n| sample logs with `created_at` field that does not contain datetime\r\nvalue | no | ✅ |\r\n\r\n\r\nTested values for `time` field:\r\n\r\n| value | match correctly `@timestamp` |\r\n|---|---|\r\n| `2024-02-24T06:56:50.648137154Z` | ✅ |\r\n| `10/01/2023 12:34:56` | ✅ |\r\n| `01-10-2023 12:34:56` | ✅ |\r\n| `Thu, 25 December 2023 10:15:00GMT` | ✅ \r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Ilya Nikokoshev <[email protected]>","sha":"4cc6952c83de1bd7eacd95c458bbe6c281b364b0"}}]}] BACKPORT--> Co-authored-by: Hanna Tamoudi <[email protected]>
- Loading branch information