- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to find delta between two tables?
damucka
Builder
06-24-2019
06:56 AM
Hello,
I am trying to find the delta between two tables, but somehow failing with it. My code is as follows:
| table host_to_report
|append
[
|inputlookup anomalies
| dedup host
| eval hosts_with_anomalies = host
| table hosts_with_anomalies
]
Now, I would like to get the entries of the host_to_report which are NOT present in the hosts_with_anomalies.
How would I do this easiest?
Kind Regards,
Kamil
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
VatsalJagani

SplunkTrust
06-24-2019
07:30 AM
Hello @damucka,
Try below search:
| set diff [<your first query> | table host_to_report] [|inputlookup anomalies | dedup host | rename host as host_to_report]
Hope this helps!!!
