Go to file
Spencer 1f59c294da
[optimizer] ignore node_modules anywhere in the x-pack directory (#24797) (#24810)
I noticed the following message while watching the build output:

```
00:33:19.131    │ info [kibana] > /var/lib/jenkins/workspace/elastic+kibana+pull-request+multijob-x-pack/install/kibana/bin/kibana --optimize.useBundleCache=true --env.name=development --logging.json=false --server.port=5620 --optimize.watchPort=5630 --optimize.watchPrebuild=true --status.allowAnonymous=true --elasticsearch.url=http://elastic:changeme@localhost:9220 --elasticsearch.username=elastic --elasticsearch.password=changeme --server.uuid=5b2de169-2785-441b-ae8c-186a1936b17d --xpack.xpack_main.telemetry.enabled=false --xpack.security.encryptionKey="wuGNaIhoMpk5sO4UBxgr3NyW1sFcLgIf" --optimize.enabled=true --xpack.reporting.capture.browser.type=chromium --xpack.spaces.enabled=false
00:33:38.533    │ proc [kibana]   log   [23:20:25.923] [info][optimize] Optimizing and caching bundles for ml, stateSessionStorageRedirect, status_page, timelion, graph, monitoring, login, logout, dashboardViewer, apm, canvas, infra and kibana. This may take a few minutes
00:34:12.650    │ proc [kibana] [BABEL] Note: The code generator has deoptimised the styling of "/var/lib/jenkins/workspace/elastic+kibana+pull-request+multijob-x-pack/install/kibana/node_modules/x-pack/plugins/infra/node_modules/lodash/lodash.js" as it exceeds the max of "500KB".
00:36:11.346    │ proc [kibana]   log   [23:22:58.721] [info][optimize] Optimization of bundles for ml, stateSessionStorageRedirect, status_page, timelion, graph, monitoring, login, logout, dashboardViewer, apm, canvas, infra and kibana complete in 152.79 seconds
```

The "code generator has deoptimised" line specifically raised a red flag as babel shouldn't be running on node_modules. We have admittedly weak regular expressions in two places to enforce this. The first is in 49071132c3/src/setup_node_env/babel_register/register.js (L42), which I verified matched `node_modules` directories within the `node_modules/x-pack` directory, but the other is 49071132c3/src/optimize/base_optimizer.js (L152-L154) which does not. It only excludes files from babel in webpack if they are within a node_modules directory that is a direct child of `node_modules/xpack`, but with InfraOps and Canvas we now have node_module directories at `plugins/*/node_modules`.

This should probably be fixed by preventing plugins from installing their own node_modules, but since that would involve upgrading/moving plugins between major versions of dependencies like lodash that's somewhat impractical from where I stand, so instead I've just updated the webpack module rule to exclude any `node_modules/xpack/**/node_modules` directory.
2018-10-30 11:16:05 -07:00
.github [6.x] Switch to Yarn (#15485) (#15955) 2018-01-10 16:54:20 +01:00
bin [bin/windows] Remove title (#21567) 2018-08-03 06:55:28 -05:00
config Set kibana locale in kibana.yml config (#21201) (#21777) 2018-08-08 13:51:31 +03:00
data [folder structure] plugins/.data -> data 2016-07-05 14:06:16 -05:00
docs [Docs] Remove beta notes for ML and Query bar (#24718) (#24727) 2018-10-29 19:21:09 +01:00
licenses Migrate x-pack-kibana source to kibana 2018-04-24 13:49:26 -07:00
maps Point kibana map config at tiles.elastic.co AWS. 2016-07-25 16:20:54 -07:00
packages [6.x] [@kbn/datemath] improve types (#24671) (#24801) 2018-10-29 20:41:39 -07:00
plugins [folder structure] plugins/.data -> data 2016-07-05 14:06:16 -05:00
scripts Integrate main i18n tool into build pipeline (#22254) (#22482) 2018-08-29 13:42:47 +03:00
src [optimizer] ignore node_modules anywhere in the x-pack directory (#24797) (#24810) 2018-10-30 11:16:05 -07:00
style_guides Update JS style guide with rule for prefixing private class methods with an underscore. (#20851) (#20891) 2018-07-17 10:00:32 -07:00
tasks Use chrome instead of IE for karma on windows (#24053) (#24102) 2018-10-16 16:42:34 -06:00
test [6.x] disable flaky test - #24287 2018-10-29 15:56:40 -07:00
utilities Backport/19383/6.x (#19487) 2018-05-28 20:24:23 -07:00
webpackShims add polyfill for ChildNode remove (#21797) (#21894) 2018-08-10 17:20:16 -06:00
x-pack [APM] Removes action menus (#24748) (#24806) 2018-10-30 13:54:30 -04:00
.backportrc.json Increment version number from 6.5.0 to 6.6.0 (#24634) 2018-10-26 07:44:49 -04:00
.browserslistrc Dashboard LESS to SASS (#22017) 2018-08-15 16:48:27 -04:00
.editorconfig Apply the same editorconfig rules to both markdown and asciidoc files 2016-09-07 11:41:41 -04:00
.eslintignore [6.x] Chore: canvas in xpack 6x (#22695) (#23201) 2018-09-14 16:26:56 -07:00
.eslintrc.js [6.x] Expose core config schema validation system as @kbn/config-schema package. (#23802) 2018-10-04 11:06:01 +02:00
.gitignore Add bolilerplate sass for Kibana core (#21185) (#21257) 2018-07-26 23:40:16 -07:00
.i18nrc.json Translations for Table Vis plugin (#23679) (#24729) 2018-10-30 15:12:24 +03:00
.node-version Bump node to 8.11.4 (#22045) 2018-08-16 13:05:05 -05:00
.nvmrc Bump node to 8.11.4 (#22045) 2018-08-16 13:05:05 -05:00
.prettierrc Increase prettier line width to 100 (#20535) (#20596) 2018-07-11 00:41:00 +02:00
CONTRIBUTING.md Fix misspellings (#19981) (#20284) 2018-06-27 20:50:06 -07:00
FAQ.md propose language changes (#10709) 2017-03-05 12:10:32 -05:00
Gruntfile.js [6.x] Validate current node version (#19154) (#19452) 2018-05-29 21:59:42 +01:00
LICENSE.txt Migrate x-pack-kibana source to kibana 2018-04-24 13:49:26 -07:00
NOTICE.txt [6.x] Graph LESS to SASS (#23348) #23363 2018-09-20 14:46:52 -04:00
package.json [dev/build] scan node_modules rather than lots of deleteAll() calls (#24692) (#24774) 2018-10-29 18:18:05 -07:00
preinstall_check.js Backport/19383/6.x (#19487) 2018-05-28 20:24:23 -07:00
README.md Increment version number from 6.5.0 to 6.6.0 (#24634) 2018-10-26 07:44:49 -04:00
STYLEGUIDE.md Add a typescript readme (#23841) (#24128) 2018-10-17 10:03:27 -04:00
tsconfig.browser.json [typescript] continue to use the default config in development (#21966) (#21973) 2018-08-15 16:22:35 -07:00
tsconfig.json [6.x] Spaces Phase 1 (#21408) (#23639) 2018-10-01 09:53:43 -04:00
tsconfig.types.json [6.x] Add Kibana bootstrap step to generate types exposed by the core and its plugins. (#23888) 2018-10-16 12:14:56 +02:00
tslint.yaml Upgrade to TypeScript 3 (#22792) (#22927) 2018-09-11 14:14:17 -07:00
TYPESCRIPT.md Add a typescript readme (#23841) (#24128) 2018-10-17 10:03:27 -04:00
yarn.lock [dev/build] scan node_modules rather than lots of deleteAll() calls (#24692) (#24774) 2018-10-29 18:18:05 -07:00

Kibana 6.6.0

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 may want to build Kibana locally to contribute some code, test out the latest features, or try out an open PR:

Snapshot Builds

For the daring, snapshot builds are available. These builds are created nightly and have undergone no formal QA, so they should never be run in production. All builds are 64 bit.

platform default OSS
OSX tar tar
Linux tar deb rpm tar deb rpm
Windows zip zip

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.