No description
Find a file
Garrett Spong 0bdcda8f20
[SIEM] Fixes UX issues around prebuilt ML Rules (#62396)
## Summary

This PR fixes a number of UX issues around the new prebuilt `machine_learning` rules when the user does not have the necessary permissions to manage the backing ML Job. Along with https://github.com/elastic/kibana/pull/62383, this ensures there is adequate information for the user determine if a rule is not working because the backing job is not running (and helping to prevent this from occurring). This also includes some requested copy changes, including:

* Renames `Anomaly Detection`  dropdown to `ML job settings`
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/78320279-57c5a880-7526-11ea-8350-647cbba263a4.png" />
</p>

* Updates copy in `ML job settings` dropdown
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/78320473-cc98e280-7526-11ea-8871-e97661ff5f78.png" />
</p>

* Only shows `ML job settings` UI when on `/detections/` routes 
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/78320401-922f4580-7526-11ea-9f97-0ec06526b273.png" />
</p>


### All Rules Changes

* Disables the `activate switch` if user does not have permission to enable/disable jobs
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/78320892-d3742500-7527-11ea-90bb-91fd203480bd.png" />
</p>

* Adds warning toast when attempting to activate via bulk actions (if user does not have permission to enable/disable jobs)
<p align="center">
  <img width="300" src="https://user-images.githubusercontent.com/2946766/78321015-1a621a80-7528-11ea-8ab0-f9fef19240f7.png" />
</p>

### Rule Details Changes
* `Machine Learning job` link now links to ML App with table filtered to the relevant job

* Disables the `activate switch` if user does not have permission to enable/disable jobs
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/78321277-c277e380-7528-11ea-99e9-034970a5054e.png" />
</p>

### Create/Edit Rule Changes

* If the job selected _is not running_, a warning will be displayed to remind the user to enable the job before running the rule. cc @benskelker @MikePaquette -- this okay copy here?
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/78321498-63ff3500-7529-11ea-9b09-a87186cbe0ce.png" />
</p>

Resolves https://github.com/elastic/siem-team/issues/575
Resolves https://github.com/elastic/siem-team/issues/519

### 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/master/packages/kbn-i18n/README.md)
- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials 
  - Scheduled time with @benskelker to update docs
- [X] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-04-06 13:44:46 -06:00
.ci [jenkins] refer to sizes in most pipeline code (#62082) 2020-04-04 07:11:31 -07:00
.github Remove ES-UI as code owner of Transform app. (#62556) 2020-04-06 09:49:23 -07:00
bin
common/graphql
config
data
docs [DOCS] Fixes nesting in APM and spaces API (#62659) 2020-04-06 11:11:56 -07:00
examples Prep for embed saved object refactor + helper (#62486) 2020-04-06 13:45:46 -04:00
licenses
packages [kbn/ui-shared-deps] expand and split (#62364) 2020-04-03 14:11:36 -07:00
rfcs [skip-ci] Service Status RFC (#59621) 2020-03-16 09:23:58 -06:00
scripts The scripts/backport.js file isn't an executable (#59800) 2020-03-10 22:06:56 +01:00
src Prep for embed saved object refactor + helper (#62486) 2020-04-06 13:45:46 -04:00
tasks Update cache-control header (#62014) 2020-04-06 10:19:42 -04:00
test Prep for embed saved object refactor + helper (#62486) 2020-04-06 13:45:46 -04:00
typings Adding PagerDuty icon to connectors cards (#60805) 2020-03-31 13:41:00 -04:00
utilities
vars [jenkins] refer to sizes in most pipeline code (#62082) 2020-04-04 07:11:31 -07:00
webpackShims [kbn/ui-shared-deps] expand and split (#62364) 2020-04-03 14:11:36 -07:00
x-pack [SIEM] Fixes UX issues around prebuilt ML Rules (#62396) 2020-04-06 13:44:46 -06:00
.backportrc.json chore(na): add 7.7 branch to the list of branches to backport (#61240) 2020-03-25 07:21:27 -07:00
.browserslistrc
.editorconfig
.eslintignore Migrate existing Cypress tests to Cypress + Cucumber (#57299) 2020-02-26 11:00:54 -08:00
.eslintrc.js [plugin-generator] rewrite tests to match new generated plugins (#61571) 2020-03-27 10:54:54 -07:00
.gitattributes
.gitignore [APM] E2E: Zero config for running e2e locally (#59152) 2020-03-24 20:28:11 +01:00
.i18nrc.json move visualizations plugin to new platform (#60403) 2020-03-27 13:02:06 +01:00
.node-version
.nvmrc
.prettierrc
.sass-lint.yml License checks for actions plugin (#59070) 2020-03-20 10:49:37 -04:00
.yarnrc
api-documenter.json
CONTRIBUTING.md docs(NA): add node-gyp setup instructions to the contributing guide. (#60116) 2020-03-13 18:29:41 +00:00
FAQ.md
github_checks_reporter.json
Gruntfile.js
Jenkinsfile Only run xpack siem cypress in PRs when there are siem changes (#60661) 2020-03-23 10:30:14 -04:00
kibana.d.ts Move src/legacy/server/index_patterns to data plugin (server) (Remove step) (#61618) 2020-04-02 12:53:14 +03:00
LICENSE.txt
NOTICE.txt
package.json [Event Log] adds query support to the Event Log (#62015) 2020-04-06 18:02:58 +01:00
preinstall_check.js
README.md
renovate.json5 [optimizer] validate the syntax of bundled node_modules (#59972) 2020-03-30 15:59:43 -07:00
STYLEGUIDE.md
tsconfig.browser.json
tsconfig.json
tsconfig.types.json
TYPESCRIPT.md
yarn.lock [kbn/ui-shared-deps] expand and split (#62364) 2020-04-03 14:11:36 -07:00

Kibana

Kibana is your window into the Elastic Stack. Specifically, it's a browser-based analytics and search dashboard for Elasticsearch.

Getting Started

If you just want to try Kibana out, check out the Elastic Stack Getting Started Page to give it a whirl.

If you're interested in diving a bit deeper and getting a taste of Kibana's capabilities, head over to the Kibana Getting Started Page.

Using a Kibana Release

If you want to use a Kibana release in production, give it a test run, or just play around:

Building and Running Kibana, and/or Contributing Code

You might want to build Kibana locally to contribute some code, test out the latest features, or try out an open PR:

Documentation

Visit Elastic.co for the full Kibana documentation.

For information about building the documentation, see the README in elastic/docs.

Version Compatibility with Elasticsearch

Ideally, you should be running Elasticsearch and Kibana with matching version numbers. If your Elasticsearch has an older version number or a newer major number than Kibana, then Kibana will fail to run. If Elasticsearch has a newer minor or patch number than Kibana, then the Kibana Server will log a warning.

Note: The version numbers below are only examples, meant to illustrate the relationships between different types of version numbers.

Situation Example Kibana version Example ES version Outcome
Versions are the same. 5.1.2 5.1.2 💚 OK
ES patch number is newer. 5.1.2 5.1.5 ⚠️ Logged warning
ES minor number is newer. 5.1.2 5.5.0 ⚠️ Logged warning
ES major number is newer. 5.1.2 6.0.0 🚫 Fatal error
ES patch number is older. 5.1.2 5.1.0 ⚠️ Logged warning
ES minor number is older. 5.1.2 5.0.0 🚫 Fatal error
ES major number is older. 5.1.2 4.0.0 🚫 Fatal error

Questions? Problems? Suggestions?

  • If you've found a bug or want to request a feature, please create a GitHub Issue. Please check to make sure someone else hasn't already created an issue for the same topic.
  • Need help using Kibana? Ask away on our Kibana Discuss Forum and a fellow community member or Elastic engineer will be glad to help you out.