You are on page 1of 25

Logstash

Logstash
IIS Log

Java SE 7
sudo apt-get install openjdk-7-jdk

JRuby
sudo apt-get install jruby
sudo apt-get install openjdk-7-jdk
sudo apt-get install jruby
http://logstash.net/Logstash
Logstash 1.4.2
tar -xzf logstash-1.4.2.tar.gz
Log
RedisLogstashElasticSearchKibana
Hello World
ElasticSearch
Logstash Web (Kibana-based)
Apache Log

vi hello.conf
bin/logstash agent -f hello.conf
Hello WorldEnter
vi hello-search.conf
bin/logstash agent -f hello-search.conf
http://localhost:9200/
bin/logstash agent -f hello-search.conf web
http://localhost:9292/index.html#/dashboar
d/file/logstash.json
vi apache-elasticsearch.conf
bin/logstash agent -f apache-
elasticsearch.conf web

wget
http://www.logstash.net/docs/1.4.2/tutorials
/10-minute-walkthrough/apache_log.1
nc localhost 3333 < apache_log.1
http://localhost:9292/index.html#/dashboar
d/file/logstash.json

vi iis_log.conf
bin/logstash agent -f iis_log.conf web
nc localhost 3333 < iis.log
http://localhost:9292/index.html#/dashboar
d/file/logstash.json

Logstash
http://www.logstash.net/
Logstash 10-minute Tutorial
http://www.logstash.net/docs/1.4.2/tutorials
/10-minute-walkthrough/

You might also like