psyapathy
(Psyapathy)
July 16, 2019, 3:12pm
1
Hello!
I looking for information by event_id 2771
And i get result table (example):
I want to group the data and hide the duplicate TargetUser by their count in table. I want this result:
Is it possible?
How to make a query for group by count?
Thank you advance
You can try sub-aggregation:
{
"aggs": {
"event_id": {
"terms": {
"field": "event_id"
},
"aggs": {
"targetUser": {
"terms": {
"field": "tragetUser"
},
"aggs": {
"ipAddress": {
"terms": {
"field": "ipAddress"
}
}
}
}
}
}
}
}
psyapathy
(Psyapathy)
July 17, 2019, 9:39am
3
Thank you. But how i can get column Count with count of TargetUser?
2 Likes
system
(system)
Closed
August 14, 2019, 9:47am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.