-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Automatic Import] Fix missing ecs mappings (#209057)
## Summary Fix missing ecs mappings. ## Details If the input is of a multilevel json where there were no ecs mappings identified on first level, For ex: ``` { okta_test: { audit: { actor: [Object], authenticationContext: [Object], client: [Object], debugContext: [Object], displayMessage: [Object], eventType: [Object], legacyEventType: null, outcome: [Object], published: [Object], request: [Object], securityContext: [Object], severity: [Object], target: null, transaction: [Object], uuid: [Object], version: null } } } ``` Then there is no `target` field identified and an iteration is triggered to find the ecs mappings in the next level. Since there is no `target` identified the logic exited and further levels were skipped in identifying the mappings. This PR fixes it and skips handling of Arrays since `rename` processor cannot flatten arrays on its own to map searchable fields. This will handled separately.
- Loading branch information
Showing
2 changed files
with
118 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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