Created
July 7, 2015 10:40
-
-
Save agamrafaeli/953b23760ccc2e70d526 to your computer and use it in GitHub Desktop.
ELK Speed Demo Conf Files
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
| # ********************** Setup ********************** | |
| wget https://download.elastic.co/logstash/logstash/logstash-1.5.2.tar.gz | |
| wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.6.0.tar.gz | |
| wget https://download.elastic.co/kibana/kibana/kibana-4.1.1-linux-x64.tar.gz | |
| tar -zxvf logstash-1.5.2.tar.gz | |
| tar -zxvf elasticsearch-1.6.0.tar.gz | |
| tar -zxvf kibana-4.1.1-linux-x64.tar.gz | |
| sudo apt-get update | |
| sudo apt-get install default-jre default-jdk | |
| export JAVA_HOME=/usr | |
| # ********************** STDIN configuration ********************** | |
| input { stdin { } } | |
| output { | |
| stdout { codec => rubydebug } | |
| } | |
| # ********************** ElasticSearch configuration ********************** | |
| input { stdin { } } | |
| output { | |
| stdout { codec => rubydebug } | |
| elasticsearch { host => localhost } | |
| } | |
| # ****************** From file configuration ****************** | |
| input { | |
| stdin { } | |
| file { | |
| path => "/home/ubuntu/my_logs/mylog.log" | |
| type => "mytype" | |
| } | |
| } | |
| output { | |
| stdout { codec => rubydebug } | |
| elasticsearch { host => localhost } | |
| } | |
| # ****************** From Apache configuration ****************** | |
| input { | |
| stdin { } | |
| file { | |
| path => "/var/log/apache2/*" | |
| type => "mytype" | |
| } | |
| } | |
| output { | |
| stdout { codec => rubydebug } | |
| elasticsearch { host => localhost } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment