└── README.md /README.md: -------------------------------------------------------------------------------- 1 | Amazon Linux AMI 2015.09 2 | 3 | Elasticsearch 1.7.2 4 | =================== 5 | 6 | Commands 7 | -------- 8 | sudo su 9 | 10 | yum update -y 11 | 12 | cd /root 13 | 14 | wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.2.noarch.rpm 15 | 16 | yum install elasticsearch-1.7.2.noarch.rpm -y 17 | 18 | rm -f elasticsearch-1.7.2.noarch.rpm 19 | 20 | cd /usr/share/elasticsearch/ 21 | 22 | ./bin/plugin -install mobz/elasticsearch-head 23 | 24 | ./bin/plugin -install lukas-vlcek/bigdesk 25 | 26 | ./bin/plugin install elasticsearch/elasticsearch-cloud-aws/2.7.1 27 | 28 | ./bin/plugin --install lmenezes/elasticsearch-kopf/1.5.7 29 | 30 | cd /etc/elasticsearch 31 | 32 | nano elasticsearch.yml 33 | 34 | Config 35 | ------ 36 | cluster.name: awstutorialseries 37 | 38 | cloud.aws.access_key: ACCESS_KEY_HERE 39 | 40 | cloud.aws.secret_key: SECRET_KEY_HERE 41 | 42 | cloud.aws.region: us-east-1 43 | 44 | discovery.type: ec2 45 | 46 | discovery.ec2.tag.Name: "AWS Tutorial Series - Elasticsearch" 47 | 48 | http.cors.enabled: true 49 | 50 | http.cors.allow-origin: "*" 51 | 52 | Commands 53 | -------- 54 | service elasticsearch start 55 | 56 | 57 | Logstash 1.5.4-1 58 | ============== 59 | 60 | Commands 61 | -------- 62 | sudo su 63 | 64 | yum update -y 65 | 66 | cd /root 67 | 68 | wget https://download.elastic.co/logstash/logstash/packages/centos/logstash-1.5.4-1.noarch.rpm 69 | 70 | yum install logstash-1.5.4-1.noarch.rpm -y 71 | 72 | rm -f logstash-1.5.4-1.noarch.rpm 73 | 74 | nano /etc/logstash/conf.d/logstash.conf 75 | 76 | Config 77 | ------ 78 | input { file { path => "/tmp/logstash.txt" } } output { elasticsearch { host => "ELASTICSEARCH_URL_HERE" protocol => "http" } } 79 | 80 | Commands 81 | -------- 82 | service logstash start 83 | 84 | 85 | Kibana 4.1.2 86 | ============ 87 | 88 | Commands 89 | -------- 90 | sudo su 91 | 92 | yum update -y 93 | 94 | cd /root 95 | 96 | wget https://download.elastic.co/kibana/kibana/kibana-4.1.2-linux-x64.tar.gz 97 | 98 | tar xzf kibana-4.1.2-linux-x64.tar.gz 99 | 100 | rm -f kibana-4.1.2-linux-x64.tar.gz 101 | 102 | cd kibana-4.1.2-linux-x64 103 | 104 | nano config/kibana.yml 105 | 106 | Config 107 | ------ 108 | elasticsearch_url: "ELASTICSEARCH_URL_HERE" 109 | 110 | Commands 111 | -------- 112 | nohup ./bin/kibana & 113 | 114 | Navigate In Browser 115 | ------------------- 116 | http://KIBANA_URL:5601/ 117 | --------------------------------------------------------------------------------