Hi,
I am trying to look for a solution to query the last 5 minutes, depending on what time is it.
That means I dont want to manually enter the time such as:
GET filebeat-*/log/_search
{"query" : {
"range" : {
"msgSubmissionTime" : { "from" : "January 18th 2017, 17:17:56.973", "to" : January 18th "2017, 17:22:56.973" }
}
}
}
I will like to do something like this:
GET filebeat-*/log/_search
{"query" :
{
"range" : {
"msgSubmissionTime" : { "from" : "5 minutes ago", "to" : "now" }
}
}
}
Thanks for any help 