Hello, I have been struggling with this for 2 days.
I have a logstash instance with ES input and ES output, without filtering anything.
I run the logstash service and after a while (20 seconds more or less) the service stops.
in /var/log/logstash/logstash.log I have this>
{:timestamp=>"2016-03-14T16:56:35.412000+0100", :message=>"Configuration OK"}
here is my config file.
input{
elasticsearch {
hosts => ["**ELASTICSEARCH_IP**:9200"]
# query => '{ "query": { "match_all":{} } }'
query => '{"query": { "match": { "host.raw": "**HOST_I_WANT_TO_FILTER**" } }}'
# size =>10
}
}
output {
elasticsearch
{
#cluster => "logstash"
hosts => ["127.0.0.1:9200"]
index => "logstash-syslog-%{+YYYY.MM.dd}"
}
}
Do you have any idea what could be happening?
Thank you