If you looked at the linked docs, it shows an example that may be useful for finding things out in one search and use it in another.
Assuming that you already have extracted (in props.conf) the fields discussed above, the search would be something like;
sourcetype=blah Auth [search sourcetype=blah 21_ubl | dedup userid | fields + userid] | stats values(ipAddr) by userid
The inner search gets executed first, and returns the distinct userid s (from 21_ubl log lines), and this gets added to the outer search, so that it now reads;
sourcetype=blah Auth (userid=user1 OR userid=user2)
/k
... View more