Skip to content

Instantly share code, notes, and snippets.

@jverweijL
Last active November 15, 2019 08:53
Show Gist options
  • Save jverweijL/4e3a2ef9aa9c79c31d72439544b87ad8 to your computer and use it in GitHub Desktop.
Save jverweijL/4e3a2ef9aa9c79c31d72439544b87ad8 to your computer and use it in GitHub Desktop.
quickly setup elk stack for liferay 7.2 on ubuntu

Install Elastic 7.4

cd /tmp
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.4.2-amd64.deb
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.4.2-amd64.deb.sha512
shasum -a 512 -c elasticsearch-7.4.2-amd64.deb.sha512 
sudo dpkg -i elasticsearch-7.4.2-amd64.deb

Install required plugins

sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-kuromoji
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-smartcn
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-stempel

Enable service so it starts at boottime

sudo systemctl enable elasticsearch.service
echo Now it's time to manually modify the clustername for Elastic

Setup kibana

wget https://artifacts.elastic.co/downloads/kibana/kibana-7.4.2-amd64.deb
sudo dpkg -i kibana-7.4.2-amd64.deb

Enable service so it starts at boottime

sudo systemctl enable kibana.service

echo Now it's time to manually configure kibana
echo Please read https://discuss.elastic.co/t/nginx-reverse-proxy-setup-for-kibana/167327/6 for setting nginx reverse proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment