No description
Find a file
Thomas Watson ec78348db7
Ensure process exits if a process warning is emitted (#59651)
Crash Kibana in dev/CI if a process warning is detected. This does not
influence how Kibana behaves in production when run via `./bin/kibana`
as there the `--no-warnings` flag is used. We will detect this flag and
as a result, disable this behavior.

Previously we used the flags `--trace-warnings --throw-deprecation` when
you started Kibana via `yarn start` and we used `--throw-deprecation` in
CI. This meant that we would only crash on deprecation warnings and log
a stack trace for all other types of warnings.

There were a couple of drawbacks to this approach:

1. If the deprecated API was called in a place enclosed in a try-catch
   (or inside of a Promise or an async/await context), the throw would
   be caught and the program would not crash.

2. If you ran `./scripts/kibana` directly instead of running `yarn
   start`, you would not get these flags automatically.

3. If you ran any of our tests locally you would not get the standard CI
   flags. This meant something that might seem to pass locally would not
   pass in CI.

This commit changes this behavior by ensuring:

- That we always crash - no matter if the offending code is surrounded
  by a try-catch (etc).

- That you always get the same behavior whether you run `yarn start` or
  `./scripts/kibana`.

- That you always get the same behavior in CI or if you run individual
  tests locally.

Furthermore, we now crash for all types of warnings - not only
deprecation warnings (except `MaxListenersExceededWarning`).

Closes #59646
2020-03-12 07:21:42 +01:00
.ci Fix visual baseline job (#59348) 2020-03-05 13:01:42 -07:00
.github [ML] Transforms: Use EuiInMemoryTable instead of custom typed table. (#59782) 2020-03-11 09:37:03 +01:00
bin
common/graphql
config
data
docs [Docs] Update threshold watch note (#59797) 2020-03-11 16:30:43 -04:00
examples update typescript version in all packages to avoid warnings (#59787) 2020-03-10 11:37:02 -07:00
licenses
packages Move canvas to use NP Expressions service (#58387) 2020-03-10 09:11:58 -04:00
rfcs [RFC] Pulse (#57108) 2020-03-11 09:36:12 +00:00
scripts The scripts/backport.js file isn't an executable (#59800) 2020-03-10 22:06:56 +01:00
src Ensure process exits if a process warning is emitted (#59651) 2020-03-12 07:21:42 +01:00
tasks Regenerate core api docs (#59814) 2020-03-10 17:24:05 -04:00
test update typescript version in all packages to avoid warnings (#59787) 2020-03-10 11:37:02 -07:00
typings Upgrade EUI to v20.0.2 (#59199) 2020-03-05 12:27:52 -07:00
utilities
vars [CI] Pipeline refactoring (#56447) 2020-03-02 15:04:27 -05:00
webpackShims build immutable bundles for new platform plugins (#53976) 2020-02-12 19:42:42 -07:00
x-pack Fixed error.status to look for error.statusCode as per new platform. (#59719) 2020-03-12 01:08:46 -04:00
.backportrc.json
.browserslistrc build immutable bundles for new platform plugins (#53976) 2020-02-12 19:42:42 -07:00
.editorconfig
.eslintignore Migrate existing Cypress tests to Cypress + Cucumber (#57299) 2020-02-26 11:00:54 -08:00
.eslintrc.js Clean up .eslintrc.js with better variable naming (#59864) 2020-03-11 15:18:49 +01:00
.gitattributes
.gitignore [APM] Make typescript optimization process compatible with NP (#58984) 2020-03-04 11:25:39 +01:00
.i18nrc.json [Telemetry] Migrate public to NP (#56285) 2020-02-13 09:44:01 +02:00
.node-version Update Node.js to version 10.19.0 (#56940) 2020-02-05 21:57:43 -08:00
.nvmrc Update Node.js to version 10.19.0 (#56940) 2020-02-05 21:57:43 -08:00
.prettierrc
.sass-lint.yml Vislib replacement toggle (#56439) 2020-02-03 22:05:32 -06:00
.yarnrc
api-documenter.json Normalize EOL symbol in platform docs (#56021) 2020-01-27 18:42:45 +01:00
CONTRIBUTING.md fix outdated docs (#58729) 2020-03-09 16:22:52 +01:00
FAQ.md
github_checks_reporter.json
Gruntfile.js
Jenkinsfile activates SIEM Cypress tests in Jenkins (#59181) 2020-03-04 10:35:05 +01:00
kibana.d.ts
LICENSE.txt
NOTICE.txt [ui/utils/query_string]: Remove unused methods & migrate apps to querystring lib (#56957) 2020-02-12 19:51:03 +03:00
package.json Ensure process exits if a process warning is emitted (#59651) 2020-03-12 07:21:42 +01:00
preinstall_check.js
README.md
renovate.json5 [kbn/optimizer] fix ui/* url rewrites in dist (#58627) 2020-03-02 15:15:44 -07:00
STYLEGUIDE.md Remove Kibana a11y guide in favor of EUI (#57021) 2020-02-07 10:55:29 -05:00
tsconfig.browser.json
tsconfig.json [Metric] convert mocha tests to jest (#54054) 2020-01-17 12:00:35 -06:00
tsconfig.types.json
TYPESCRIPT.md
yarn.lock Revert less update (#59852) 2020-03-11 15:27:30 -04: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.