Last active
October 22, 2019 13:09
-
-
Save pindlebot/4074ed78a760932af7b0918832b83f6e to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch | |
curl -o /etc/yum.repos.d/elasticsearch.repo https://gist.githubusercontent.com/unshift/54c4eed278fca283ce71efb24a652885/raw/d1d4efbbae526f8546fc3abcda8fadbe185f45d7/elasticsearch.repo | |
yum install java-1.8.0-openjdk elasticsearch kibana logstash -y | |
chkconfig --add elasticsearch | |
chkconfig --add kibana | |
chkconfig --add logstash | |
/usr/share/elasticsearch/bin/elasticsearch-plugin install cloud-aws | |
/usr/share/elasticsearch/bin/elasticsearch-plugin install discovery-ec2 | |
/usr/share/elasticsearch/bin/elasticsearch-plugin install repository-s3 | |
/usr/share/logstash/bin/system-install /etc/logstash/startup.options systemd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment