Fetch multiples traces with a common id


I'm new with the Elasticsearch web interface. I'm trying to display player session results on the dashboard. I have three dropdown filters, with difficulty, level selected and name of the player (actor).
During a single session I'm sending multiple traces, for examples when the game initialize, when the player succeed a mini game, when the game end. All of theses traces share a session id.
My goal is if I send 10 traces for one session, I do 3 sessions, and in the database there is a total of 30 traces which mean there is 3 sessions, elastic understand that he need to fetch results in the 3 data group where the data inside of them are linked together with the session id, which would lead to show result on the dashboard without indicating the session id manually in the filters.

I really hope someone could help me, the struggle is real. Thank you

Hi @casteillet, Welcome to the Elastic community.

Need more information on your Query.

But as far I understand, You need to fetch result in group which should group by Session ID which can be achievable using Top hits aggregation.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.