Lookups to compare the difference

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Lookups to compare the difference

L0 Member

I am trying to find clients missing software, I found all the clients WITH the software, dumped them into a a lookup and now trying to find the difference, basically return the ones NOT in the lookup,
So something like this: 

dataset = host_inventory
| filter applications != null
| arrayexpand applications
| alter applicationname=json_extract(applications, "$.application_name")
| alter applicationversion=json_extract(applications, "$.version")
| alter appvendor=json_extract(applications, "$.vendor")
| alter installdate=json_extract(applications, "$.install_date")
| join (dataset = UmbrellaHosts) as UH UH.hostname = host_name
|filter agent_type = "AGENT_TYPE_WORKSTATION"
|filter host_name != hostname



 

UH.hostname is the hosts from the lookup, and just doing a not equal returns nothing.

In splunk I could do it like this: 

index=abc sourcetype=xyz NOT [| inputlookup data.csv | fields ccid]


Appreciate it if someone has any idea how to pull this off? 

0 REPLIES 0
  • 31 Views
  • 0 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!