Skip to content

Instantly share code, notes, and snippets.

@davidraviv davidraviv/logstash.conf
Last active Jan 21, 2016

Embed
What would you like to do?
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
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
You can’t perform that action at this time.