I'm trying to use the Elasticsearch filter in my logstash configuration to search a specific index for a term. I need help building the query. Would the following be valid?
{
"indices" : {
"indices" : [ "index1" ],
"query" : {
"term" : { "term1" : %{[event_field_name]} }
}
}
}
The documentation doesn't seem to give much info on more complex DSL queries:
https://www.elastic.co/guide/en/logstash/current/plugins-filters-elasticsearch.html