No description
Find a file
Frank Hassanabad 7337a67c53
Fixes backwards compatibility with rule exports (#115888)
## Summary

We at least want to do our best to retain n-1 version compatible with exports and then best effort for n-2 or more. During testing I saw that we changed our export contract and I was getting these errors importing from 7.15 into 7.16:

<img width="814" alt="Screen Shot 2021-10-20 at 8 25 07 PM" src="https://user-images.githubusercontent.com/1151048/138202992-c6e016e6-388c-4597-b302-b13d7126e705.png">

The reason is because it thinks the final "summary line" which has `exported_count` instead of `exported_rules_count` will think that is a rule based ndjson line and not exclude it.

This was introduced in this PR: https://github.com/elastic/kibana/pull/115144

I was under the impression that was adding more information and not subtracting information when I did the PR review. I almost think that we should keep the `exported_count` in addition to the new lines that are added so the user has a total count of everything exported. This PR doesn't do that, it just fixes the backwards compatibility to not have errors. If we ship like this the other rules from 7.15 and previous will still import but users will see error messages like that one above which they should never see.

However, really, we should be careful about changes that are not just additive with formats. 

### Checklist

No this PR currently does not have tests for backwards compatibility but I think we should add it either here or a follow up.

- [ ] [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
2021-10-21 09:34:54 -06:00
.buildkite [buildkite] FTSR / limit concurrency and total jobs (#115857) 2021-10-20 18:09:49 -04:00
.ci chore(NA): runs packer cache for 7.x rename into 7.16 (#115802) 2021-10-20 17:34:14 +01:00
.github Add API integration tests for Interactive Setup. (#111879) 2021-10-14 20:14:01 +02:00
api_docs Fix adding prepackaged rules via fleet plugin (#114467) 2021-10-19 20:16:31 -05:00
config Bump node to 16.11.1 (#110684) 2021-10-16 16:21:58 -05:00
dev_docs Update kibana_platform_plugin_intro with more details on packages vs plugins (#114713) 2021-10-13 14:01:46 -04:00
docs [Connectors][ServiceNow] Default isLegacy to true for API consumers (#115367) 2021-10-21 10:41:56 +01:00
examples [expressions] decrease bundle size (#114229) 2021-10-20 13:56:37 +02:00
legacy_rfcs Update doc slugs to improve analytic tracking, move to appropriate folders (#113630) 2021-10-04 13:36:45 -04:00
licenses
packages [CodeEditor] add support of triple quotes (#112656) 2021-10-21 18:26:28 +03:00
plugins
scripts Add interactive setup CLI (#114493) 2021-10-20 22:17:45 +01:00
src [CodeEditor] add support of triple quotes (#112656) 2021-10-21 18:26:28 +03:00
test Fix flaky functional test in saved objects managements -> delete SO (#115291) 2021-10-21 07:41:40 -07:00
typings [Fix] Replace Osquery query parser lib (#113425) 2021-09-29 20:07:13 +02:00
vars Disable APM e2e tests 2021-10-15 17:35:04 -04:00
x-pack Fixes backwards compatibility with rule exports (#115888) 2021-10-21 09:34:54 -06:00
.backportrc.json [backports] 7.16 should not be checked by default (#115819) 2021-10-20 09:49:06 -07:00
.bazelignore chore(NA): stop grouping bazel out symlink folders (#96066) 2021-04-01 14:16:14 -05:00
.bazeliskversion Development and build support for ARM based Apple devices (#114879) 2021-10-19 23:01:52 +01:00
.bazelrc [ci] Disable Bazel cache on CI (#115428) 2021-10-19 22:12:31 +01:00
.bazelrc.common [ci] Disable Bazel cache on CI (#115428) 2021-10-19 22:12:31 +01:00
.bazelversion Development and build support for ARM based Apple devices (#114879) 2021-10-19 23:01:52 +01:00
.browserslistrc
.editorconfig .editorconfig MDX files should follow the same rules as MD (#96942) 2021-04-13 11:40:42 -04:00
.eslintignore [kbn/ui-shared-deps] split into two packages (#110558) 2021-09-16 12:06:46 -07:00
.eslintrc.js [kibanaUtils] Don't import full semver client side (#114986) 2021-10-18 13:20:44 +02:00
.fossa.yml
.gitattributes
.gitignore [build] Add cloud docker images (#107949) 2021-09-09 20:40:09 -05:00
.i18nrc.json [MetricVis] Move the expression function and renderer to a separate plugin. (#113427) 2021-10-08 08:42:44 +03:00
.node-version Bump node to 16.11.1 (#110684) 2021-10-16 16:21:58 -05:00
.npmrc
.nvmrc Bump node to 16.11.1 (#110684) 2021-10-16 16:21:58 -05:00
.prettierignore
.prettierrc
.stylelintignore chore(NA): stop grouping bazel out symlink folders (#96066) 2021-04-01 14:16:14 -05:00
.stylelintrc
.telemetryrc.json [Usage collection] Collect non-default kibana configs (#97368) 2021-04-20 11:02:27 -04:00
.yarnrc
api-documenter.json
BUILD.bazel [build_ts_refs] improve caches, allow building a subset of projects (#107981) 2021-08-10 22:12:45 -07:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md Update doc slugs to improve analytic tracking, move to appropriate folders (#113630) 2021-10-04 13:36:45 -04:00
FAQ.md
github_checks_reporter.json
Jenkinsfile [CI] Disable tracked branch jobs in Jenkins, enable reporting in Buildkite (#112604) 2021-09-21 11:31:15 -04:00
jest.config.integration.js chore(NA): introduce preset for jest-integration tests on @kbn/test (#105144) 2021-07-14 20:53:12 +01:00
jest.config.js [Canvas] Expression tagcloud (#108036) 2021-08-23 06:52:19 -04:00
kibana.d.ts Remove /src/legacy (#95510) 2021-04-06 09:25:36 +02:00
LICENSE.txt
NOTICE.txt [Detections] Adds automatic updating for Prebuilt Security Detection Rules package (#101846) 2021-06-24 15:31:25 -06:00
package.json update elastic-charts to 38.0.1 (#115623) 2021-10-21 08:25:18 -05:00
preinstall_check.js
README.md STYLEGUIDE reference .md => .mdx (#107440) 2021-08-02 14:05:58 -05:00
renovate.json5 chore(NA): adds renovate configs for renaming 7.x into 7.16 (#115787) 2021-10-20 17:33:26 +01:00
RISK_MATRIX.mdx Add "Risk Matrix" section to the PR template (#100649) 2021-06-02 14:43:47 +02:00
SECURITY.md
STYLEGUIDE.mdx Update doc slugs to improve analytic tracking, move to appropriate folders (#113630) 2021-10-04 13:36:45 -04:00
tsconfig.base.json Adds missing DOM.Iterable (#115218) 2021-10-18 13:22:49 -04:00
tsconfig.bazel.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) 2021-08-10 22:12:45 -07:00
tsconfig.browser.json
tsconfig.browser_bazel.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) 2021-08-10 22:12:45 -07:00
tsconfig.json Add interactive setup CLI (#114493) 2021-10-20 22:17:45 +01:00
tsconfig.types.json [build_ts_refs] improve caches, allow building a subset of projects (#107981) 2021-08-10 22:12:45 -07:00
TYPESCRIPT.md
WORKSPACE.bazel Development and build support for ARM based Apple devices (#114879) 2021-10-19 23:01:52 +01:00
yarn.lock update elastic-charts to 38.0.1 (#115623) 2021-10-21 08:25:18 -05: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.