This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################### INSTALL METRICSBEAT ###################### | |
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
echo 'deb https://artifacts.elastic.co/packages/oss-6.x/apt stable main' | sudo tee /etc/apt/sources.list.d/beats.list | |
sudo apt-get update && sudo apt-get install metricbeat | |
sudo metricbeat keystore create | |
echo "${elastic_pw}" | sudo bin/metricbeat-keystore add ES_PASSWORD | |
# echo "setup.dashboards.enabled: true" >> /etc/metricbeat/metricbeat.yml | |
cat <<EOT >> /etc/metricbeat/metricbeat.yml | |
output.elasticsearch: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################ LOGSTASH ############################## | |
sudo systemctl enable logstash | |
sudo systemctl start logstash | |
sudo /usr/share/logstash/bin/logstash-plugin install x-pack | |
sudo bin/logstash-keystore create | |
echo "${elastic_pw}" | sudo bin/logstash-keystore add ES_PASSWORD | |
cat <<EOT >> /etc/logstash/logstash.yml | |
xpack.monitoring.enabled: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####################### KEYSTORE ################################ | |
cd /usr/share/kibana | |
sudo bin/kibana-keystore create | |
echo "${elastic_pw}" | sudo bin/kibana-keystore add elasticsearch.password |
OlderNewer