Hi, How can I get the last value of each interface in the match phrase query? I have tried with max timestamp, but I get a time out error
GET /metrics-inf-*/_search
{
"query": {
"bool": {
"filter": [
{
"bool": {
"should": [
{
"exists": {
"field": "throughput_bps"
}
}
],
"minimum_should_match": 1
}
},
{
"bool": {
"should": [
{
"match_phrase": {
"q_interface_name": "Gi0/0/2 on (LM-A1K)"
}
},
{
"match_phrase": {
"q_interface_name": "Gi0/0/1 on (CH-A1K)"
}
},
{
"match_phrase": {
"q_interface_name": "Eth/61 on (LM-N9K)"
}
},
{
"match_phrase": {
"q_interface_name": "Eth/17 on (CH-N9K)"
}
}
],
"minimum_should_match": 1
}
}
]
}
},
"_source": [
"throughput_bps",
"q_interface_name",
"@timestamp"
]
}