Check Versions
We are in the process of updated these examples to target the current 6.x version of the Elastic Stack. If you stumble upon one for which the instructions have not been migrated please try with the current stack rather than the 5.x
Check Java version
Elasticsearch and Logstash require Java 8 or later. Install or update as needed - use the official Oracle distribution or an open-source distribution such as OpenJDK. To check your Java version, run the following command: java -version
.
Install Elasticsearch
- Download the Elasticsearch binary package for your platform.
- Extract the
.zip
ortar.gz
archive file
(see here for more help)
Install Logstash
- Download the Logstash binary package for your platform.
- Extract the
.zip
ortar.gz
archive file
(see here for more help)
Install Kibana
- Download the Kibana 5 binary package for your platform.
- Extract the
.zip
ortar.gz
archive file.
(see here for more help)
Elasticsearch
Open a new shell window and run Elasticsearch.
<path_to_elasticsearch_root_dir>/bin/elasticsearch
Elasticsearch should now be running on port 9200. To test, point your browser at port 9200 (http://localhost:9200
). You should see output similar to the following with status code of 200.
{
"status" : 200,
"name" : "James Howlett",
"cluster_name" : "elasticsearch",
... truncated output
}
Logstash
To test your Logstash installation, run the following command in a new shell:
<path_to_logstash_root_dir>/bin/logstash -e 'input { stdin { } } output { stdout {} }'
Type checking logstash!
at the command prompt. If Logstash is correctly installed, you should see:
checking logstash!
2015-06-21T01:22:14.405+0000 0.0.0.0 checking logstash!
Exit Logstash using CTRL-D
command.
Kibana
Open a new shell window and run Kibana.
<path_to_kibana_root_dir>/bin/kibana
Kibana should now be running on port 5601. To test, point your web browser at port 5601 (http://localhost:5601
). You should see the Kibana UI.