[Bug] exclude_export_details export flag also excludes exceptions and exception lists #220920
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Detection Rule Management
Security Detection Rule Management Team
Team:Detections and Resp
Security Detection Response Team
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
Describe the Bug
When exporting detection rules via the API, setting
exclude_export_details
totrue
will only output the rule objects, excluding the exceptions and exception lists. Setting it tofalse
exports the rules, exceptions, exception lists, and a summary line at the end of the file. The documentation states this flag should only exclude the summary line, so this behavior is unexpected.To Reproduce
POST <kibana host>:<port>/api/detection_engine/rules/_export
POST <kibana host>:<port>/api/detection_engine/rules/_export?exclude_export_details
Expected Behavior
The
exclude_export_details
flag should only exclude the final summary line. All rules and exception objects should be output regardless as to how this flag is set.Screenshots
No response
Desktop - OS
None
Desktop - Version
No response
Additional Context
Tested on 8.15.1, but we also noticed the issue on 8.13 previously.
The text was updated successfully, but these errors were encountered: