mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
## Summary This draft PR adds the UI to bulk gap filling gaps. This action can be triggered from the "rules management" table as well as from the gaps table in the "execution results" tab for any rule. # How to test Make sure your `kibana.dev.yaml` contains the following feature flags: `storeGapsInEventLogEnabled` and `bulkFillRuleGapsEnabled`. You can just paste this string in the file: ``` xpack.securitySolution.enableExperimental: [ 'storeGapsInEventLogEnabled', 'bulkFillRuleGapsEnabled' ] ``` ## Bulk gap filling from the "rules management" table 1. Generate 100 rules, each with 1000 gaps using [this tool](https://github.com/elastic/security-documents-generator). `yarn start rules --rules 100 -g 1000 -c -i"5m"` 2. Navigate to the rules management table at `/app/security/rules/management` 3. Select some rules, click on "Bulk actions" and then on "Fill gaps"  4. Select the time window and click on "Run"  5. You should see a confirmation toast showing that 3 rules were successfully scheduled  6. Click on any of the rules for which you just executed a gaps fill and check its gaps by going to "Execution results" and scrolling down to the "Gaps" table. You can see that the gaps covering the time range you selected are marked as "in progress"  If you select one or more rules that are disabled, you should see this modal:  ## Bulk filling from a rule gaps table 1. From the "rules management" table, click on any rule that has gaps. 2. Click on the "execution results" tab 3. Scroll down to the gaps table, you should see a "Fill all gaps" button. 4. Click on it and select the time range.  5. If you select a big time range, you should see a toast indicating that the scheduling is in progress after 5 seconds (you can hit this case by generating 10000 gaps for 1 rule)  6. You should see a success toast once it is done  --------- Co-authored-by: Khristinin Nikita <nikita.khristinin@elastic.co> |
||
---|---|---|
.. | ||
kbn-babel-preset | ||
kbn-bazel-runner | ||
kbn-capture-oas-snapshot-cli | ||
kbn-check-mappings-update-cli | ||
kbn-check-prod-native-modules-cli | ||
kbn-ci-stats-performance-metrics | ||
kbn-ci-stats-shipper-cli | ||
kbn-cli-dev-mode | ||
kbn-dependency-ownership | ||
kbn-dependency-usage | ||
kbn-docs-utils | ||
kbn-eslint-config | ||
kbn-eslint-plugin-disable | ||
kbn-eslint-plugin-eslint | ||
kbn-eslint-plugin-eui-a11y | ||
kbn-eslint-plugin-i18n | ||
kbn-eslint-plugin-imports | ||
kbn-eslint-plugin-telemetry | ||
kbn-failed-test-reporter-cli | ||
kbn-find-used-node-modules | ||
kbn-generate | ||
kbn-generate-console-definitions | ||
kbn-import-locator | ||
kbn-json-ast | ||
kbn-kibana-manifest-schema | ||
kbn-lint-packages-cli | ||
kbn-lint-ts-projects-cli | ||
kbn-lock-manager | ||
kbn-managed-vscode-config | ||
kbn-managed-vscode-config-cli | ||
kbn-manifest | ||
kbn-mock-idp-plugin | ||
kbn-optimizer | ||
kbn-peggy-loader | ||
kbn-performance-testing-dataset-extractor | ||
kbn-picomatcher | ||
kbn-plugin-check | ||
kbn-plugin-generator | ||
kbn-plugin-helpers | ||
kbn-relocate | ||
kbn-repo-file-maps | ||
kbn-repo-linter | ||
kbn-repo-source-classifier | ||
kbn-repo-source-classifier-cli | ||
kbn-set-map | ||
kbn-sort-package-json | ||
kbn-styled-components-mapping-cli | ||
kbn-ts-projects | ||
kbn-ts-type-check-cli | ||
kbn-validate-next-docs-cli | ||
kbn-web-worker-stub | ||
kbn-whereis-pkg-cli | ||
kbn-yarn-lock-validator |