Trying to get a configuration going in Logstash where I can reference multiple JSON files from a folder and have it process them accordingly -- not sure if this is at all the correct way to go about this, here is what I have so far
input {
syslog {
port => 514
codec => "json"
}
}
filter {
path => "/home/*.json" ]
}
}
output {
if [codec] == "json" {
elasticsearch {
hosts => "IP:9200"
http_compression => "true"
index => "testjson-%{+YYYY.MM.dd}"
}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.