読者です 読者をやめる 読者になる 読者になる

nginx,elasticsearch,kibanaインストール

==============================================================
nginxのインストール
#vi /etc/yum.repos.d/nginx.repo

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/5/$basearch/
gpgcheck=0
enabled=1

# yum update
# yum search nginx
# yum install nginx
# service nginx start
# curl 127.0.0.1
# chkconfig nginx on

==============================================================
JAVAのインストール
# java -version
# yum remove java
# yum install java-1.7.0-openjdk.i386

==============================================================

elasticsearch インストール
# wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.4.tar.gz
# tar zxvf elasticsearch-1.3.4.tar.gz
# mv elasticsearch-1.3.4 /opt/
# /opt/elasticsearch-1.3.4/bin/elasticsearch
# curl 127.0.0.1:9200
{
"status" : 200,
"name" : "Aleksander Lukin",
"version" : {
"number" : "1.3.4",
"build_hash" : "a70f3ccb52200f8f2c87e9c370c6597448eb3e45",
"build_timestamp" : "2014-09-30T09:07:17Z",
"build_snapshot" : false,
"lucene_version" : "4.9"
},
"tagline" : "You Know, for Search"
}

==============================================================

kibanaのインストール

# wget https://download.elasticsearch.org/kibana/kibana/kibana-3.1.1.tar.gz
# tar zxvf kibana-3.1.1.tar.gz
# mv kibana-3.1.1 /opt/
# vi config.js
elasticsearch: "http://IP_address:9200",

# vi /etc/nginx/conf.d/default.conf
location / {
root /opt/kibana-3.1.1/;
index index.html index.htm;
}

==============================================================
nginx 再起動

#service nginx restart

==============================================================
logstashのインストール
wget https://download.elasticsearch.org/logstash/logstash/logstash-1.4.2.tar.gz

tar zxvf logstash-1.4.2.tar.gz
wget http://logstash.net/docs/1.4.2/tutorials/10-minute-walkthrough/apache-elasticsearch.conf
bin/logstash agent -f apache-elasticsearch.conf web
nc localhost 3333 < apache_log.2