-
Add these settings to
.bashrc
for personal preference
export ELASTIC_SEARCH_HOME="${APPLICATIONS_HOME}/elasticsearch-6.4.3"
export ELASTIC_SEARCH_BIN="${ELASTIC_SEARCH_HOME}/bin"
alias elasticsearch-restart='sudo systemctl restart elasticsearch.service'
alias elasticsearch-start='sudo systemctl start elasticsearch.service'
alias elasticsearch-stop='sudo systemctl stop elasticsearch.service'
alias elasticsearch-status='sudo systemctl status elasticsearch.service'
alias elasticsearch-enable='sudo systemctl enable elasticsearch.service'
alias elasticsearch-disable='sudo systemctl disable elasticsearch.service'
export KIBANA_HOME="${APPLICATIONS_HOME}/kibana-6.4.3"
export KIBANA_BIN="${KIBANA_HOME}/bin"
alias kibana-restart='sudo systemctl restart kibana.service'
alias kibana-start='sudo systemctl start kibana.service'
alias kibana-stop='sudo systemctl stop kibana.service'
alias kibana-status='sudo systemctl status kibana.service'
alias kibana-enable='sudo systemctl enable kibana.service'
alias kibana-disable='sudo systemctl disable kibana.service'
export LOGSTASH_HOME="${APPLICATIONS_HOME}/logstash-6.4.3"
export LOGSTASH_BIN="${LOGSTASH_HOME}/bin"
alias logstash-restart='sudo systemctl restart logstash.service'
alias logstash-start='sudo systemctl start logstash.service'
alias logstash-stop='sudo systemctl stop logstash.service'
alias logstash-status='sudo systemctl status logstash.service'
alias logstash-enable='sudo systemctl enable logstash.service'
alias logstash-disable='sudo systemctl disable logstash.service'
- Copy
elasticsearch, kibana, logstash
services and update thesystemd
service
$ sudo cp elasticsearch.service /etc/systemd/system
$ sudo cp kibana.service /etc/systemd/system
$ sudo cp logstash.service /etc/systemd/system
$ sudo systemctl daemon-reload
- Start/Re-Start
elasticsearch, kibana, logstash
services
$ elasticsearch-start
$ kibana-start
$ logstash-start
-
Installing
ELK
- PhoenixNAP - Get Started With Elasticsearch, Logstash, Kibana, And Beats
- PhoenixNAP - How To Install ELK stack on Ubuntu 20.04
- PhoenixNAP - How To Install Elasticsearch on Ubuntu 20.04
- DigitalOcean - How To Install ELK Stack on Ubuntu 20.04
- DigitalOcean - How To Install/Configure Elasticsearch on Ubuntu 20.04