I have a set of device documents in elasticsearch. Each document has several attributes including location.
I also want to store logging data in elasticsearch. Each log will have a pointer to a single device document.
I want to query the logs using kibana and group by location.
How could I set this up?