WARNING: Version 1.2 of Beats has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Installing Elasticsearch
editInstalling Elasticsearch
editElasticsearch is a real-time, distributed storage, search, and analytics engine. It can be used for many purposes, but one context where it excels is indexing streams of semi-structured data, such as logs or decoded network packets.
The binary packages of Elasticsearch have only one dependency: Java. The minimum supported version is Java 7. To download and install Elasticsearch, use the commands that work with your system (deb for Debian/Ubuntu, rpm for Redhat/Centos/Fedora, mac for OS X, and win for Windows):
sudo apt-get install openjdk-7-jre curl -L -O https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-2.3.3.deb sudo dpkg -i elasticsearch-2.3.3.deb sudo /etc/init.d/elasticsearch start
sudo yum install java-1.7.0-openjdk curl -L -O https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-2.3.3.rpm sudo rpm -i elasticsearch-2.3.3.rpm sudo service elasticsearch start
# install Java, e.g. from: https://www.java.com/en/download/manual.jsp curl -L -O https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-2.3.3.zip unzip elasticsearch-2.3.3.zip cd elasticsearch-2.3.3 ./bin/elasticsearch
- If necessary, download and install the latest version of the Java from www.java.com.
- Download the Elasticsearch 2.3.3 Windows zip file from the downloads page.
-
Extract the contents of the zip file to a directory on your computer, for example,
C:\Program Files
. -
Open a command prompt as an Administrator and navigate to the directory that contains the extracted files, for example:
cd C:\Program Files\elasticsearch-2.3.3
-
Run the following command to start Elasticsearch:
bin\elasticsearch.bat
You can learn more about installing, configuring, and running Elasticsearch in the Elasticsearch Reference.
Making Sure Elasticsearch is Up and Running
editTo test that the Elasticsearch daemon is up and running, try sending an HTTP GET request on port 9200.
curl http://127.0.0.1:9200
On Windows, if you don’t have cURL installed, simply point your browser to the URL.
You should see a response similar to this:
{ "name" : "Angela Del Toro", "cluster_name" : "elasticsearch", "version" : { "number" : "2.2.0", "build_hash" : "8ff36d139e16f8720f2947ef62c8167a888992fe", "build_timestamp" : "2016-01-27T13:32:39Z", "build_snapshot" : false, "lucene_version" : "5.4.1" }, "tagline" : "You Know, for Search" }