Skip to content

Instantly share code, notes, and snippets.

@walterra
Created January 27, 2020 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walterra/7c9508390eb5e8971b09781eb0823479 to your computer and use it in GitHub Desktop.
Save walterra/7c9508390eb5e8971b09781eb0823479 to your computer and use it in GitHub Desktop.

How to install Elasticsearch & Kibana on Windows

Elasticsearch

...
[2020-01-27T13:00:09,874][INFO ][o.e.c.m.MetaDataIndexTemplateService] [DESKTOP-RHMJTNR] adding template [.monitoring-alerts-7] for index patterns [.monitoring-alerts-7]
[2020-01-27T13:00:09,983][INFO ][o.e.c.m.MetaDataIndexTemplateService] [DESKTOP-RHMJTNR] adding template [.monitoring-kibana] for index patterns [.monitoring-kibana-7-*]
[2020-01-27T13:00:10,045][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [DESKTOP-RHMJTNR] adding index lifecycle policy [watch-history-ilm-policy]
[2020-01-27T13:00:10,108][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [DESKTOP-RHMJTNR] adding index lifecycle policy [slm-history-ilm-policy]
[2020-01-27T13:00:10,233][INFO ][o.e.l.LicenseService     ] [DESKTOP-RHMJTNR] license [79c6917a-e34e-4c71-b813-bec57986e704] mode [basic] - valid
[2020-01-27T13:00:10,233][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [DESKTOP-RHMJTNR] Active license is now [BASIC]; Security is disabled
  • Don't close this command line window and keep Elasticsearch running!
  • To check Elasticsearch is running, enter localhost:9200 in your browser, you should get a result similar to:
{
  "name" : "DESKTOP-RHMJTNR",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "IW6nTKVHT1m7yal7xSIznA",
  "version" : {
    "number" : "7.5.2",
    "build_flavor" : "default",
    "build_type" : "zip",
    "build_hash" : "8bec50e1e0ad29dad5653712cf3bb580cd1afcdf",
    "build_date" : "2020-01-15T12:11:52.313576Z",
    "build_snapshot" : false,
    "lucene_version" : "8.3.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

Kibana

  • Download Kibana from https://www.elastic.co/downloads/kibana, e.g. https://artifacts.elastic.co/downloads/kibana/kibana-7.5.2-windows-x86_64.zip
  • Extract the ZIP file and copy the kibana-7.5.2 directory to C:\visual-analytics\kibana-7.5.2.
  • Open a second command line (cmd.exe), in the command line do:
  • cd c:\visual-analytics\kibana-7.5.2 (move to kibana directory)
  • bin\kibana.bat (start kibana)
  • If you run into an error related to kibana task manager, stop kibana (CTRL+C), run the command curl -X DELETE http://localhost:9200/.kibana_task_manager_1 and try running Kibana again.
  • Successful Kibana logs should look something like this:
  log   [13:26:10.656] [info][kibana-monitoring][monitoring] Starting monitoring stats collection
  log   [13:26:10.694] [info][status][plugin:maps@7.5.2] Status changed from yellow to green - Ready
  log   [13:26:11.661] [info][status][plugin:spaces@7.5.2] Status changed from yellow to green - Ready
  log   [13:26:13.074] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml
  log   [13:26:13.089] [info][status][plugin:reporting@7.5.2] Status changed from uninitialized to green - Ready
  log   [13:26:13.163] [info][listening] Server running at http://localhost:5601
  log   [13:26:13.304] [info][server][Kibana][http] http server running at http://localhost:5601
  • Access http://localhost:5601 in your browser to run Kibana.

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment