Here is my query for fetching the result of today last 15 minutes
{
"query": {
"bool": {
"filter": [
{
"bool": {
"should": [
{
"match_phrase": {
"ResponseCode": "005"
}
},
{
"match_phrase": {
"ResponseCode": "008"
}
},
{
"match_phrase": {
"ResponseCode": "081"
}
},
{
"match_phrase": {
"ResponseCode": "091"
}
},
{
"match_phrase": {
"ResponseCode": "096"
}
},
{
"match_phrase": {
"ResponseCode": "900"
}
},
{
"match_phrase": {
"ResponseCode": "009"
}
},
{
"match_phrase": {
"ResponseCode": "0068"
}
},
{
"match_phrase": {
"ResponseCode": "153"
}
},
{
"range":
{
"timestamp":
{
"gte":"now-15m"
}
}
}
],
"minimum_should_match": 1
}
}
],
"must_not": []
}
}
}
But i am getting older data of previous month.