[ELK] Enable X-Pack in ELK stack 6.3
We konw X-Pack is is an extension that bundles security, monitoring, reporting, and graph capabilities into one package.
From ELK stack 6.3, X-Pack is integrated into Elasticsearch, you can try it by 30-day-trial license. After the trail you could choose buy the license or downgrade to the normal license.
ES
1.Down & Unzip & Enter
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.2.tar.gz
tar -zvxf elasticsearch-6.3.2.tar.gz && cd elasticsearch-6.3.2
2.Enable monitor & Start
echo "xpack.monitoring.enabled: true" >>config/elasticsearch.yml
echo "xpack.security.enabled: true" >>config/elasticsearch.yml
echo "xpack.watcher.enabled: true" >>config/elasticsearch.yml
echo "xpack.ml.enabled: true" >>config/elasticsearch.yml
echo "xpack.graph.enabled: true" >>config/elasticsearch.yml
echo "xpack.monitoring.collection.enabled: true" >>config/elasticsearch.yml
bin/elasticsearch
Kibana
1.Download & Unzip & Entry
wget wget https://artifacts.elastic.co/downloads/kibana/kibana-6.3.2-darwin-x86_64.tar.gz
tar -zvxf kibana-6.3.2-darwin-x86_64.tar.gz && cd kibana-6.3.2-darwin-x86_64
2.Start
bin/kibana
3.Visit kibana, http://localhost:5601, you will see the dashboard, next we will enable 30-day-trail license.
3.1.Click Management on left menu

3.2.Click License Management

3.3.Click Start trial button

3.4.Click Start my trial button

3.5.Start trail license done

X-Pack
1.Enter elasticsearch directory, execute command as below to generate password for users, please choose one
bin/elasticsearch-setup-passwords interactive(you need to enter password for every user)
bin/elasticsearch-setup-passwords auto(will generate password for users automatically)
2.Enter kibana directory, stop kibana and set username/password in kibana.yml, then start kibana
echo "elasticsearch.username: kibana" >>config/kibana.yml
echo "elasticsearch.password: kibana123" >>config/kibana.yml
bin/kibana
3.After finishing all the settings, you will see the login page

4.Enter the username/password which you set in kibana.yml, then you could login success

Reply