How to run and configure Elastic Search & X-Pack?

ElasticSearch is search engine based distributed library used for multi-tenant-capable full-text search engine with json parameters.

By using Elastic Search, we can reindex or index one particular content inside our own search engine. It is much more faster and easier to use in any kind of applications. The community provides a lot more libraries and plugins to make it faster, effective and scalable.

The top plugins have been used as UI analytic tool or log management system in top it companies as enterprise application objects.
E.g.: Logstash & kibana

Download a specific version of Elastic Search to your PC.

i would recommend the stable version 5.6.4

Download Link: https://www.elastic.co/downloads/past-releases/elasticsearch-5-6-4

After download has been completed, Extract it in your system.

For windows extract it using winzip/winrar/7z but for Linux use the below command:

tar -xvzf elasticsearch5.6.4.tar.gz
make sure Java is installed in the system.

For windows,

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

For Linux,

sudo add-apt-repository -y ppa:webupd8team/java

sudo apt-get update

sudo apt-get -y install oracle-java8-installer

After extraction has been completed, go to the config folder and open elasticsearch.yml file, which controls the whole elastic search module and would be empty by default.

open the yml file and add a cluster.

cluster.name: my_first_cluster

Then save the file

And go to bin folder and run elastic-search.bat for windows and ./elasticsearch for Linux and check if everything is running fine.

For daemon run:

type: ./elasticsearch -d -p pid.log

How to kill elastic search process?

Find the process for the port 9200:

command:

netstat -a -n -o | find "9200" Kill the process to stop elastic search: pkill <PID id> If you have ran from daemon and saved one pid.log file then you can find the pid id from that file itself. For more information and help contact: [email protected]