Last active
January 21, 2016 13:49
-
-
Save davidraviv/13fb92c1ca0342750a46 to your computer and use it in GitHub Desktop.
Basic logstash config file that reads a json log file into elasticsearch.
*Install logstash on mac:*
brew install logstash
mkdir /usr/local/etc/logstash
subl /usr/local/etc/logstash/logstach.conf *Test config file*
cd /usr/local/Cellar/logstash/2.1.1
bin/logstash -f /usr/local/etc/logstash/logstash.conf --configtest
This file contains 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
input { | |
file { | |
path => "/var/log/kwik/kwik.log" | |
codec => json | |
start_position => beginning | |
} | |
} | |
output { | |
elasticsearch { | |
hosts => "localhost:9200" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment