Hello,
I have this logstash configuration >
input{
elasticsearch {
hosts=> [ "HOST_A"]
index => "logstash-syslog-2016.11.17"
query => '{"filter" : {
"or" : [
{
"term" : { "host.raw" : "HOST1" }
},
{
"term" : { "host.raw" : "HOST2" }
},
{
"term" : { "host.raw" : "HOST3" }
}
]
}}'
}
}
output {
file{
path => "/etc/elk/logout/SR_17_11.log"
}
}
But it takes too much time.
Is there a way to do that query in a faster way?