I am trying to find out delta between two searches.
index="xyz-index" userId | rename attributes.privateGroups as privateGroups
| join type=inner userId [ search index="xyz-index" userId | rename attributes.publicGroups as publicGroups]
| table userId, privateGroups, publicGroups
- I want to find out userIds which are in both privateGroups and publicGroups
- I want to find out userIds only in privateGroups but not in publicGroups or vice versa
For the one i tired with inner query as mentioned above but i get two different search results when i changed the search order.
Please help me in the second query as well? Below are the 3 events, 101 user id is in two groups whereas 102 is only one group
{
userId : 101
levle : INFO
timestamp : 2020-06-10
attributes: {
privateGroups : JohnOrg
}
}
{
userId : 101
levle : INFO
timestamp : 2020-05-09
attributes: {
publicGroups : DistrictOrg
}
}
{
userId : 102
levle : INFO
timestamp : 2020-05-09
attributes: {
publicGroups : DistrictOrg
}
}