Hi,
I am trying to use elasticsearch filter plugin in logstash to query previous messages for the same session.
Code:
elasticsearch {
hosts => ["localhost"]
query => "tags:Connection_new AND session_id:%{[session_id]}"
fields => ["logdate", "started"]
}
if ![started] {
mutate {
add_tag => "Connection_new"
}
}
However this query returns error for .kibana index [No mapping found for [@timestamp] in order to sort on].
Is it possible to set index for query to search on using this plugin?
Thank you very much for any help.