I have two indices: users & activities.
Users index data looks like:
{
"email": "alice@gmail.com",
"Name": "Alice A"
},
{
"email": "bob@gmail.com",
"name": "Bob B"
},
...
activity index data looks like this:
{
"@timestamp": "...",
"email": "bob@gmail.com",
"activity": "bob's first activity"
},
{
"@timestamp": "...",
"email": "bob@gmail.com",
"activity": "bob's second activity"
}
I want to create a graph that counts the activities per user.
I did something like this:
But I want to change the email
with name
field (from users index). I need to present real names in the legend.
Is there a way to do that? JOIN
?
I don't mind to use visualization in dashboard or canvas / any other solution (rather than SQL) that supports that.