-
Notifications
You must be signed in to change notification settings - Fork 191
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
[Request] Documentation for Manual Run of Security rules #5264
Comments
## Summary Main ticket elastic/security-team#9327 With this changes we introduce the way to schedule rule run manually. There are two ways to do that in UI: 1. Via "All actions" button on rules management page 2. Via "All actions" button on rule's details page **NOTES**: 1. To be able to test these changes, you need to enable feature flag `manualRuleRunEnabled` first 2. Bulk action will be part of a separate ticket/PR **RECORDING**: https://github.com/elastic/kibana/assets/2700761/d49bad53-026e-49c2-aeea-481203260b23 ### Checklist Delete any items that are not applicable to this PR. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] elastic/security-docs#5264 - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] [Cypress RM (100 ESS & 100 Serverless)](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6263) - [ ] [Cypress DE (100 ESS & 100 Serverless)](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6280) - [x] [Integration Rule Gaps (100 ESS & 100 Serverless)](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6257) --------- Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Ryland Herrick <[email protected]>
We should mention Manual rule limitations - to users in docs |
…run (#9653) (#186293) Main ticket elastic/security-team#9653 With this changes we introduce a new bulk action which allows to schedule backfill for multiple rules. **NOTES**: - To be able to test these changes, you need to enable feature flag `manualRuleRunEnabled` first **RECORDING**: https://github.com/elastic/kibana/assets/2700761/742083e7-090e-4805-8c3d-abcba04554b1 ### Checklist Delete any items that are not applicable to this PR. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] elastic/security-docs#5264 - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] [Cypress RM (100 ESS & 100 Serverless)](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6410) - [x] [Cypress DE (100 ESS & 100 Serverless)](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6411) - [x] [Integration Rule Gaps (100 ESS & 100 Serverless)](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6412) - [x] [Integration Bulk Actions (100 ESS & 100 Serverless)](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6413) --------- Co-authored-by: Kibana Machine <[email protected]>
API docs impactWe need to update next sections:
BulkManualRuleRun
|
Known issue for Threshold rule: Use case: Let's say I have 4 events: 13:00, 14:00, 15:00, 16:00 |
Known issue 2: |
General notes from today's feature sync:
|
Trying to rewrite known Issues:
No workaround
No workaround |
Holding off on merging the ESS and Serverless PRs until I learn more about the new gap fill functionality and how it affects the current manual run docs. Should know more by Wednesday Sep 25. |
This feature is being released in beta in 8.16. I'll need to update the ESS and Serverless docs to make sure they show the beta label, and not the technical preview label. |
The feature flag that enabled the following core manual run functionality in Serverless was merged last week via elastic/kibana#193833. Two new alert fields are being introduced as part of the manual run feature and are being released on slightly staggered timelines:
Action items for me:
|
Core docs merged for ESS and Serverless. Docs for the new |
Description
What: We introduce manual rule Runs for security solution.
Why: Users will be able to run rule in the past and specify the date range.
Use cases we cover:
There additional issue for UX copy: #5265
A little bit of technical background, how it works, which should help with better naming
Let's say we have rule with 5m interval
rule execution log - it represents the results of a single rule execution. it can be running/succeded/failed.
When the user executes Manual rule runs (14:00-16:00)- it creates the Backfill group (we probably need come up with better naming).
Backfill group - it's something, that contains the start and end date range, status of the whole group, and rule info.
Also Backfill group has scheduled entries - it's a list of tasks of potenial rule executions.
When the task manager is free it starts to schedule those tasks - which execute the rule, and then the result of this execution appears in the rule execution log.
scheduled entry - can be pending/running/error/complete
The whole backfill group also can be pending/running/error - depends on status of scheduled entires.
After all scheduled entries are complete - Backfill group is deleted.
We can Delete/Stop only the whole backfill group, but not individual backfill group.
Background & resources
kibana.alert.intended_timestamp
:Add intended timestamp kibana#191717
kibana.alert.rule.execution_type
: Execution type field kibana#195884Which documentation set does this change impact?
ESS and serverless
ESS release
8.158.16Serverless release
Monday, July 29, 2024Tuesday, October 14, 2024Feature differences
None
API docs impact
Prerequisites, privileges, feature flags
None
Doc plan
kibana.alert.intended_timestamp
field has been added to the alert schema. This field appears in documents of alerts that were generated by manual rule runs. They convey the estimated time range of when the alert was created.Doc updates
NOTE: The feature is being released in Tech Preview in 8.15, so will need to use that label/admonition for ESS and Serverless docs.
Execution results: Make the following updates:
rule-execution-logs.png
- new image should show the updatedExecution log
table and the newManual runs
table.Execution log
table. The new items are:Source event time range
column. By default, this setting is toggled off.Manage detection rules:
Manual runs
table and click Stop run in theActions
column.Stop rule run
The text was updated successfully, but these errors were encountered: