forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Entity Store Config - Lookback period (elastic#206421)
## Summary This PR enables configurability of the lookbackPeriod for Security’s Entity Store through the enable API. ### Testing 1. Open the latest instance of Kibana. 2. Ensure both the Entity Store and Risk Score are enabled. 3. Navigate to Dev Tools. 4. Use the enable endpoint with lookbackPeriod, where the lookbackPeriod must be a number followed by one of the supported units (m, s, or h). ``` POST kbn:api/entity_store/enable { "lookbackPeriod": "72h" // example value } ``` 5. After enabling, use the status endpoint to confirm the configuration: ``` GET kbn:api/entity_store/status {} ``` 6. Post some documents, to check the entities available within the lookbackPeriod - confirm you can only see those within this period, and not outside of this period e.g. "5h" period, post with a timestamp of today (within 5 hours) and from yesterday and view results. ``` POST lookback-period-test/_doc { "entity_id": "LookbackPeriod Test Today", "entity_name": "LookbackPeriod Test Today", "timestamp": "2025-01-17T14:31:00Z" } ``` ``` POST lookback-period-test/_doc { "entity_id": "LookbackPeriod Test Yesterday", "entity_name": "LookbackPeriod Test Yesterday", "timestamp": "2025-01-16T14:31:00Z" } ``` 7. Can also go to entity store, check one of the transforms and check the JSON gte ranges from here too, they should show the new lookbackPeriod. --------- Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
b08eaa7
commit 667040f
Showing
14 changed files
with
127 additions
and
18 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
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
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
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
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
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
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