Skip to content

[Bug] [DAC] Logging Typo #4936

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions detection_rules/kbwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ def kibana_export_rules( # noqa: PLR0912, PLR0913, PLR0915
return []

rules_results = results # type: ignore[reportUnknownVariableType]
if (custom_rules_only or export_query) and "exported_rules_count" in results[-1]: # type: ignore[reportUnknownMemberType]
# Kibana returns a summary message if a query is provided, so we need to filter out the summary
rules_results = rules_results[:-1] # type: ignore[reportUnknownVariableType]
results = results[:-1] # type: ignore[reportUnknownVariableType]
action_connector_results = []
exception_results = []
if kibana_include_details:
Expand Down
Loading