Go to file
Spencer eefa2a54af
[kbn/es] print first 500 bytes of invalid content (#34133)
We added checksum verification to `@kbn/es` in https://github.com/elastic/kibana/pull/33893, which is working, and in turn proves that using the Artifact API to download snapshots wasn't enough to fix the issues we've been seeing. In https://kibana-ci.elastic.co/job/elastic+kibana+7.0/412/JOB=kibana-ciGroup8,node=immutable/console we see:

```
00:14:20.762  │ info Installing from snapshot
00:14:20.763      │ info version: 7.0.0
00:14:20.763      │ info install path: /var/lib/jenkins/workspace/elastic+kibana+7.0/JOB/kibana-ciGroup8/node/immutable/kibana/.es/test-97zzlri1nyb
00:14:20.764      │ info license: oss
00:14:20.764      │ info downloading artifact info from https://artifacts-api.elastic.co/v1/versions/7.0.0-SNAPSHOT/builds/latest/projects/elasticsearch
00:14:20.852      │ info downloading artifact from https://snapshots.elastic.co/7.0.0-ea741e68/downloads/elasticsearch/elasticsearch-oss-7.0.0-SNAPSHOT-linux-x86_64.tar.gz
00:14:22.765      │ info downloading artifact checksum from https://snapshots.elastic.co/7.0.0-ea741e68/downloads/elasticsearch/elasticsearch-oss-7.0.0-SNAPSHOT-linux-x86_64.tar.gz
00:14:22.818 
00:14:22.818 artifact downloaded from https://snapshots.elastic.co/7.0.0-ea741e68/downloads/elasticsearch/elasticsearch-oss-7.0.0-SNAPSHOT-linux-x86_64.tar.gz does not match expected checksum
00:14:22.819   expected: 1e5188c1410e0299777dd1cb9638aa12de4067ea80a77ff6723986746bbc7b1a35d580023f605e6e1ae84887e675ba10184032da80240a42289ee6c5d5361c66
00:14:22.820   received: 7630553ab83828196931917aa15f17bf1f31d541fd11e0f1c82d89f294fbe47dca7be99d96da5baa0a9545712e3c9340f9b3d989e5056a3f9471f43bb582becc
```

The new logging shows that we used the explicit URL for the artifact `https://snapshots.elastic.co/7.0.0-ea741e68/downloads/elasticsearch/elasticsearch-oss-7.0.0-SNAPSHOT-linux-x86_64.tar.gz` and still got invalid data, which confirms our suspicion that something funky is happening with the CDN. In order to understand more about what's going on here this PR adds a buffer that caches the first 500 bytes from the artifact response and will log it in utf8 format if the checksum doesn't match. I'm hoping we're going to see some HTML or something that will help explain what's happening.
2019-03-28 19:41:07 -07:00
.ci Refactor ES-related environment variables (#33036) 2019-03-13 11:51:06 -07:00
.github Add platform team as core codeowner (#32904) 2019-03-11 12:21:36 -04:00
bin Bump node to 10.15.1 (#27918) 2019-02-05 16:06:59 -06:00
common/graphql [Uptime] Implement EuiSuperDatePicker (#28217) 2019-01-18 13:44:58 -05:00
config Swap defaultAddId with defaultRoute in example config (#28547) 2019-03-08 14:38:31 +09:00
data [folder structure] plugins/.data -> data 2016-07-05 14:06:16 -05:00
docs [DOCS] Fixes anchor in ordered list (#34092) 2019-03-28 10:17:35 -07:00
licenses Migrate x-pack-kibana source to kibana 2018-04-24 13:48:10 -07:00
packages [kbn/es] print first 500 bytes of invalid content (#34133) 2019-03-28 19:41:07 -07:00
plugins [folder structure] plugins/.data -> data 2016-07-05 14:06:16 -05:00
rfcs Update RFC-0001 with PR and issue links (#33598) 2019-03-20 14:15:47 -04:00
scripts adding runPipeline tests (#27015) 2019-03-21 07:12:25 +01:00
src [Courier] Remove unused merge duplicate request logic (#33907) 2019-03-28 13:49:50 -07:00
style_guides Point to EUI for SASS/CSS guidelines (#27415) 2018-12-18 14:39:38 -05:00
tasks adding runPipeline tests (#27015) 2019-03-21 07:12:25 +01:00
test disable flaky test (#33468) 2019-03-28 19:21:34 -07:00
typings Upgrades EUI to 9.5 (#33672) 2019-03-22 10:28:37 -04:00
utilities Only using known handlers with handlebars (#27061) 2018-12-17 08:29:37 -08:00
webpackShims Improve dll plugin relation with webpackshims (#30129) 2019-02-22 01:45:42 +00:00
x-pack Test: element filter expressions (#33908) 2019-03-28 15:03:32 -07:00
.backportrc.json Fix .backportrc.json to use 7.x instead of 7.1 (#30253) 2019-02-06 10:49:00 -05:00
.browserslistrc Convert all Less files to Sass in Dashboard, using EUI variable scope (#21374) 2018-08-14 19:05:33 -04:00
.editorconfig Apply the same editorconfig rules to both markdown and asciidoc files 2016-09-07 11:41:41 -04:00
.eslintignore [eslint] merge custom rules into a single plugin (#33733) 2019-03-22 17:12:14 -07:00
.eslintrc.js [@kbn/expect] "fork" expect.js into repo (#33761) 2019-03-25 09:56:48 -07:00
.gitignore Implement built_assets directory (#27468) 2019-01-09 17:30:29 -07:00
.i18nrc.json [Maps] Localization (#30881) 2019-03-06 18:24:41 -05:00
.node-version Bump node to 10.15.2 (#32200) 2019-02-28 10:48:42 -06:00
.nvmrc Bump node to 10.15.2 (#32200) 2019-02-28 10:48:42 -06:00
.prettierrc Increase prettier line width to 100 (#20535) 2018-07-09 22:50:37 +02:00
.sass-lint.yml Dark mode fixes for Visualize charts, TSVB, and Timelion (#30478) 2019-02-14 11:46:56 -05:00
.yarnrc [kbn-pm] Use yarn workspaces for dependencies (#24095) 2018-11-12 12:38:11 -06:00
CONTRIBUTING.md Modify labels for release notes in Contributing guide (#33450) 2019-03-19 21:07:45 -07:00
FAQ.md propose language changes (#10709) 2017-03-05 12:10:32 -05:00
Gruntfile.js Apache 2.0 license headers (#19383) 2018-05-28 20:06:30 -07:00
kibana.d.ts Expose core api types in /public and /server (#32746) 2019-03-19 08:35:19 +01:00
LICENSE.txt Migrate x-pack-kibana source to kibana 2018-04-24 13:48:10 -07:00
NOTICE.txt Deleted unused directives from angular-boostrap (#33564) 2019-03-24 11:00:52 +02:00
package.json eui 9.7.1 (#34098) 2019-03-28 12:27:35 -07:00
preinstall_check.js Apache 2.0 license headers (#19383) 2018-05-28 20:06:30 -07:00
README.md Update paths to ui, server, deprecation, plugin_discovery in src/legacy 2019-02-11 10:41:37 -05:00
STYLEGUIDE.md Point to EUI for SASS/CSS guidelines (#27415) 2018-12-18 14:39:38 -05:00
tsconfig.browser.json [typescript] continue to use the default config in development (#21966) 2018-08-14 15:27:07 -07:00
tsconfig.json [@kbn/expect] "fork" expect.js into repo (#33761) 2019-03-25 09:56:48 -07:00
tslint.yaml [@kbn/expect] "fork" expect.js into repo (#33761) 2019-03-25 09:56:48 -07:00
TYPESCRIPT.md [@kbn/expect] "fork" expect.js into repo (#33761) 2019-03-25 09:56:48 -07:00
yarn.lock [kbn/es] use artifact api to determine snapshot url (#33893) 2019-03-28 14:29:39 -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.