Skip to content

Instantly share code, notes, and snippets.

@pindlebot
Last active October 22, 2019 13:09
Show Gist options
  • Save pindlebot/4074ed78a760932af7b0918832b83f6e to your computer and use it in GitHub Desktop.
Save pindlebot/4074ed78a760932af7b0918832b83f6e to your computer and use it in GitHub Desktop.
#!/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