-
Notifications
You must be signed in to change notification settings - Fork 548
[FR] Add Kibana Action Connector Error to Exception List Workaround #4583
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
Merged
eric-forte-elastic
merged 6 commits into
main
from
4577-fr-add-kibana-action-connectors-to-existing-exception-list-workaround
Apr 15, 2025
Merged
[FR] Add Kibana Action Connector Error to Exception List Workaround #4583
eric-forte-elastic
merged 6 commits into
main
from
4577-fr-add-kibana-action-connectors-to-existing-exception-list-workaround
Apr 15, 2025
+26
−9
Conversation
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
Enhancement - GuidelinesThese guidelines serve as a reminder set of considerations when addressing adding a feature to the code. Documentation and Context
Code Standards and Practices
Testing
Additional Checks
|
terrancedejesus
approved these changes
Mar 30, 2025
Mikaayenson
approved these changes
Apr 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…ting-exception-list-workaround
traut
approved these changes
Apr 14, 2025
This Kibana PR elastic/kibana#216380 may address this issues as well. |
…ting-exception-list-workaround
…ting-exception-list-workaround
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Issue link(s):
Resolves #4577
Summary - What I changed
This PR a similar form of error handling to catch a customer issue where importing rules with action connectors, it triggers what amounts to a race condition where Kibana is still creating the underlying connector and also tries to import the rule before the connector has finished being created. In these cases, simply re-trying the import command will address the issue as the creation time for the connector is seconds and by the time the error message prints, the connector is likely finished being created. As such, this error is non-deterministic.
We have existing logic to catch a known Kibana issue when importing rules dealing with Exception Lists, this logic instructs the user to re-run the command with specific parameters. The current action connectors case is a simpler situation where one can simply re-run the last command; however, we can utilize the existing logic to detect the issue and print out a recommendation of re-running the command to address the issues.
Note: This PR should not be merged until the Kibana team is notified of the issue so it can be documented there as well.
This PR exists to explicitly to supply a workaround for Kibana rules data ingestion. This will occur in an ndjson import as well.
How To Test
Testing may be difficult due to the nature of the issue, but the following command to import rules to Kibana can be used as an example to trigger the issue. Additionally, make sure the rules used have action connectors that reference connectors that do not exist in Kibana (or at least in the given space).
python -m detection_rules kibana import-rules -d new_dac_demo/rules -o -e -ac
Error example:
Checklist
bug
,enhancement
,schema
,maintenance
,Rule: New
,Rule: Deprecation
,Rule: Tuning
,Hunt: New
, orHunt: Tuning
so guidelines can be generatedmeta:rapid-merge
label if planning to merge within 24 hoursContributor checklist