-
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.
[Rule Migration] Improve rule translation prompts and processes (#204021
) ## Summary This PR performs multiple changes that all focuses on improving the quality of the results returned when we translate rules that do not match with a prebuilt rule and both with/without related integrations. Changes include: - Add a filter_index_patterns node, to always ensure `logs-*` is removed with our `[indexPattern:logs-*]` value, which is similar to how we detect missing lookups and macros. - Split `translate_rule` into another `ecs_mapping` node, trying to ensure translation focuses on changing SPL to ESQL without any focus on actual field names, while the other node focuses only on the ESQL query and changing field names. - The summary now added in the comments have 1 for the translation and one for the ECS mapping. - Add default rule batch size `15` with PR comment/question. - Ensure we only return one integration related rather than an array for now, to make ESQL more focused on one related integration. - New prompt to filter out one or more integrations from the returned RAG; similar to how its done for rules RAG results already.
- Loading branch information
Showing
23 changed files
with
560 additions
and
89 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
Binary file modified
BIN
+10 KB
(130%)
x-pack/plugins/security_solution/docs/siem_migration/img/agent_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.