Go to file
Kibana Machine 9a2ce68c9e
[RAC] [TGrid] Use EuiDataGridColumn schemas (for sorting) (#109983) (#109986)
## Summary

Updates the `TGrid` to use `EuiDataGrid` [schemas](https://eui.elastic.co/#/tabular-content/data-grid-schemas-and-popovers/) as suggested by @snide in the following issue: <https://github.com/elastic/kibana/issues/108894>

## Desk testing

1) In the `Security Solution`, navigate to `Security > Rules` and enable multiple detection rules that have different `Risk Score`s

**Expected result**

- The Detection Engine generates alerts (when the rule's criteria is met) that have different risk scores

2) Navigate to the `Security > Alerts` page

**Expected results**

As shown in the screenshot below:

- The alerts table is sorted by `@timestamp` in descending (Z-A) order, "newest first"
- The `@timestamp` field in every row is newer than, or the same time as the row below it
- The alerts table shows a non-zero count of alerts, e.g. `20,600 alerts`

![alerts-table-at-page-load](https://user-images.githubusercontent.com/4459398/130700525-343d51af-7a3a-475c-b3b4-b429bc212adf.png)

_Above: At page load, the alerts table is sorted by `@timestamp` in descending (Z-A) order, "newest first"_

3) Observe the count of alerts shown in the header of the alerts table, e.g. `20,600 alerts`, and then change the global date picker in the KQL bar from `Today` to `Last 1 year`

**Expected results**

- The golbal date picker now reads `Last 1 year`
- The count of the alerts displayed in the alerts table has increased, e.g. from `20,600 alerts` to `118,709 alerts`
- The `@timestamp` field in every row is (still) newer than, or the same time as the row below it

4) Click on the `@timestamp` column, and choose `Sort A-Z` from the popover, to change the sorting to ascending, "oldest first", as shown in the screenshot below:

![click-sort-ascending](https://user-images.githubusercontent.com/4459398/130701250-3f229644-2a78-409e-80ff-f88588562190.png)

_Above: Click `Sort A-Z` to sort ascending, "oldest first"_

**Expected results**

As shown in the screenshot below:

- The alerts table is sorted by `@timestamp` in ascending (A-Z) order, "oldest first"
- The `@timestamp` field in every row is older than, or the same time as the row below it
- `@timestamp` is older than the previously shown value, e.g. `Aug 3` instead of `Aug 24`

![timestamp-ascending-oldest-first](https://user-images.githubusercontent.com/4459398/130702221-cc8cf84f-c044-4574-8a93-b9d35c14c890.png)

_Above: The alerts table is now sorted by `@timestamp` in ascending (A-Z) order, "oldest first"_

5) Click on the `Risk Score` column, and choose `Sort A-Z` from the popover, to add `Risk Score` as a secondary sort in descending (Z-A) "highest first" order, as shown in the screenshot below:

![sort-risk-score](https://user-images.githubusercontent.com/4459398/130702599-e4c0d74a-8775-435b-a263-5b6b278f6dfd.png)

_Above: Click `Sort A-Z` to add `Risk Score` as a secondary sort in descending (Z-A) "highest first" order_

**Expected results**

- The alerts table re-fetches data
- The alerts table shows `2 fields sorted`

6) Hover over the alerts table and click the `Inspect` magnifiing glass icon

**Expected result**

- The `Inspect` modal appaers, as shown in the screenshot below:

![inspect](https://user-images.githubusercontent.com/4459398/130702849-1189f32e-eb03-4d9d-b248-6c6f0b5665fa.png)

_Above: the `Inspect` modal_

7) Click the `Request` tab, and scroll to the `sort` section of the request

**Expected result**

Per the JSON shown below:

- The request is sorted first by `@timestamp` in ascending (A-Z) order, "oldest first"
- The request is sorted second by `signal.rule.risk_score` descending (Z-A) "highest first" order

```json
  "sort": [
    {
      "@timestamp": {
        "order": "asc",
        "unmapped_type": "date"
      }
    },
    {
      "signal.rule.risk_score": {
        "order": "desc",
        "unmapped_type": "number"
      }
    }
  ],
```

8) Click `Close` to close the `Inspect` modal

9) Click `2 fields sorted` to display the sort popover

10) Use the drag handles to, via drag-and-drop, update the sorting such that `Risk Score` is sorted **before** `@timestamp`, as shown in the screenshot below:

![sort-by-risk-score-first](https://user-images.githubusercontent.com/4459398/130704159-523effa2-21ef-4599-a939-964fc523f9ec.png)

_Above: Use the drag handles to, via drag-and-drop, update the sorting such that `Risk Score` is sorted **before** `@timestamp`_

**Expected results**

As shown in the screenshot below:

- The table is updated to be sorted first by the higest risk score, e.g. previously `47`, now `73`
- The alerts table is sorted second by `@timestamp` in ascending (A-Z) order, "oldest first", and *may* have changed, e.g. from `Aug 3` to `Aug 12`, depending on the sample data in your environment

![highest-risk-score](https://user-images.githubusercontent.com/4459398/130704878-163a2427-fc7a-4755-9adc-a06b0d7b8e43.png)

_Above: The alerts table is now sorted first by highest risk score_

11) Once again, hover over the alerts table and click the `Inspect` magnifiing glass icon

12) Once again, click the `Request` tab, and scroll to the `sort` section of the request

**Expected result**

Per the JSON shown below:

- The request is sorted first by `signal.rule.risk_score` in descending (Z-A) "highest first" order
- The request is sorted second by `@timestamp` in ascending (A-Z) order, "oldest first"

```json
  "sort": [
    {
      "signal.rule.risk_score": {
        "order": "desc",
        "unmapped_type": "number"
      }
    },
    {
      "@timestamp": {
        "order": "asc",
        "unmapped_type": "date"
      }
    }
  ],
```

Co-authored-by: Andrew Goldstein <andrew-goldstein@users.noreply.github.com>
2021-08-25 01:30:13 -04:00
.buildkite [api-docs] raise memory limit again (#107065) (#107092) 2021-07-28 19:03:57 -04:00
.ci [ftr] rework ciGroup validation to remove JOBS.yml and avoid duplication (#109149) (#109324) 2021-08-23 15:07:12 -04:00
.github/ISSUE_TEMPLATE Improve APM issue template (#109561) (#109778) 2021-08-24 04:03:21 -04:00
api_docs Remove spacesOss plugin (#109258) (#109649) 2021-08-23 15:19:50 -04:00
config Support authenticating to Elasticsearch via service account tokens (#102121) (#105286) 2021-07-12 16:34:44 -04:00
dev_docs [NoDataPage] Updating the default messages (#108799) (#109006) 2021-08-17 20:27:39 -04:00
docs [7.x] [DOCS] Updates create index pattern (#106935) (#109748) 2021-08-24 17:28:36 -04:00
examples [data.search] Handle warnings inside of headers (#103744) (#109298) 2021-08-20 14:54:54 -04:00
licenses [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
packages Cleanup after ExecLog integration (#107695) (#109871) 2021-08-24 14:07:49 -04:00
plugins
rfcs v2 migration algorithm docs for rewriting saved object id's (#93002) (#109472) 2021-08-20 10:37:44 -04:00
scripts [ftr] rework ciGroup validation to remove JOBS.yml and avoid duplication (#109149) (#109324) 2021-08-23 15:07:12 -04:00
src ensure all kibana.json files have owners and they are consistent (#109731) (#109969) 2021-08-24 19:48:18 -04:00
tasks/config Revert "[i18n] [7.x] Integrate 7.14.0 Translations (#106359)" 2021-07-22 13:47:56 -07:00
test [Enterprise Search] Set up cypress-axe tests (#108465) (#109920) 2021-08-24 21:28:49 +00:00
typings [Fleet] Replace usages of EuiCodeEditor by CodeEditor (#107434) (#107778) 2021-08-05 14:56:50 -04:00
utilities [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
vars [perf-testing] send detailed APM data from report generation (#107592) (#108257) 2021-08-11 17:12:00 -04:00
x-pack [RAC] [TGrid] Use EuiDataGridColumn schemas (for sorting) (#109983) (#109986) 2021-08-25 01:30:13 -04:00
.backportrc.json chore(NA): adds 7.16 into backportrc (#109128) (#109136) 2021-08-18 12:57:02 -04:00
.bazelignore chore(NA): stop grouping bazel out symlink folders (#96066) (#96085) 2021-04-01 17:34:54 -04:00
.bazeliskversion chore(NA): bump bazelisk to v1.7.5 (#92905) (#92946) 2021-02-25 22:06:16 -05:00
.bazelrc chore(NA): manage npm dependencies within bazel (#92864) (#93474) 2021-03-03 15:21:20 -05:00
.bazelrc.common chore(NA): enable exports_directories_only on rules nodejs to improve performance (#104180) (#104234) 2021-07-01 21:26:22 -04:00
.bazelversion chore(NA): bazel machinery installation on kbn bootstrap (#89469) (#89521) 2021-01-28 02:42:44 +00:00
.browserslistrc [7.x] [browserslist] remove unnecessary browsers (#89186) (#89250) 2021-01-25 18:22:34 -07:00
.editorconfig .editorconfig MDX files should follow the same rules as MD (#96942) (#97079) 2021-04-14 05:34:57 -04:00
.eslintignore [Reporting] Create reports with full state required to generate the report (#101048) (#108404) 2021-08-13 10:10:14 +02:00
.eslintrc.js Remove spacesOss plugin (#109258) (#109649) 2021-08-23 15:19:50 -04:00
.fossa.yml
.gitattributes
.gitignore [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00
.i18nrc.json [Canvas] Expression tagcloud (#108036) (#109627) 2021-08-23 09:58:32 -04:00
.node-version Bump Node.js from version 14.17.3 to 14.17.5. (#108324) (#108489) 2021-08-13 09:13:19 -04:00
.npmrc chore(NA): assure puppeteer_skip_chromium_download is applied across every yarn install situation (#88346) (#88379) 2021-01-14 20:32:48 +00:00
.nvmrc Bump Node.js from version 14.17.3 to 14.17.5. (#108324) (#108489) 2021-08-13 09:13:19 -04:00
.prettierignore [7.x] [dev] Replace sass-lint with stylelint (#86177) (#88498) 2021-01-15 14:36:34 -06:00
.prettierrc
.stylelintignore chore(NA): stop grouping bazel out symlink folders (#96066) (#96085) 2021-04-01 17:34:54 -04:00
.stylelintrc Amsterdam helpers (#93701) (#94323) 2021-03-10 13:36:11 -05:00
.telemetryrc.json [Usage collection] Collect non-default kibana configs (#97368) (#97653) 2021-04-20 13:04:54 -04:00
.yarnrc chore(NA): manage npm dependencies within bazel (#92864) (#93474) 2021-03-03 15:21:20 -05:00
api-documenter.json
BUILD.bazel [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00
CONTRIBUTING.md Point to new developer guide in CONTRIBUTING.md (#108953) (#108970) 2021-08-17 14:42:05 -04:00
FAQ.md
github_checks_reporter.json
Gruntfile.js [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
Jenkinsfile chore(NA): remove KBN_ES_SNAPSHOT_USE_UNVERIFIED var from Jenkinsfile 2021-07-14 19:48:47 +01:00
jest.config.integration.js chore(NA): introduce preset for jest-integration tests on @kbn/test (#105144) (#105667) 2021-07-14 22:05:07 +00:00
jest.config.js [Canvas] Expression tagcloud (#108036) (#109627) 2021-08-23 09:58:32 -04:00
kibana.d.ts [7.x] Remove /src/legacy (#95510) (#96283) 2021-04-06 06:08:31 -04:00
LICENSE.txt [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
NOTICE.txt [Detections] Adds automatic updating for Prebuilt Security Detection Rules package (#101846) (#103366) 2021-06-28 17:13:25 +00:00
package.json [Enterprise Search] Set up cypress-axe tests (#108465) (#109920) 2021-08-24 21:28:49 +00:00
preinstall_check.js [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
README.md STYLEGUIDE reference .md => .mdx (#107440) (#107456) 2021-08-02 15:17:17 -04:00
renovate.json5 fix brushing on small multiples (#94505) (#94611) 2021-03-15 15:47:18 -04:00
STYLEGUIDE.mdx Syntax in styleguide.mdx is breaking docs build (#99840) (#99859) 2021-05-11 20:12:01 -04:00
tsconfig.base.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00
tsconfig.bazel.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00
tsconfig.browser.json
tsconfig.browser_bazel.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00
tsconfig.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00
tsconfig.types.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00
TYPESCRIPT.md
WORKSPACE.bazel chore(NA): upgrades bazel rules nodejs into v3.8.0 (#108471) (#108545) 2021-08-13 12:50:43 -04:00
yarn.lock [Enterprise Search] Set up cypress-axe tests (#108465) (#109920) 2021-08-24 21:28:49 +00: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.