Hi Every one
I am having metricbeat data I need to extract system.cpu.user.pct along with time using query DSL.
I have checked and got how to extract the CPU user pct but now I want the time for each CPU user pct value too.
Kindly provide me help the query i used for getting cpu.user.pct is below:-
"query": {
"bool": {
"must": [
{
"range": {
"system.cpu.user.pct": {
"gte": 0.0
}
}
},
{
"range": {
"@timestamp": {
"gte": "now-1h",
"lte": "now"
}
}
}
]
}
}