I currently have a search which returns a list of users with employee id from a user lookup
eg: user lookup has the following information
My initial search returns syyyyy, sxxxxx but I want the search to return szzzzzz. But my below search is not returning any results
*index=idxxxxxx sourcetype="cisco:xxx" svc | rename user as identity
| lookup local=true wfhnamesdef identity OUTPUT identity, name
| search identity NOT
[| lookup local=true wfhnames_def identity OUTPUT identity, name] *
Could anyone please help
Thanks & Regards
Do the lookup first, then use join to combine your search results with the base lookup values.
| inputlookup host.csv | join type=left host [metadata type=hosts]
Doing an individual "| metadata type=hosts" search would give me host "A" and "B". In my csv file, I have "A", "B", "C", "D". Doing the above query would give me everything in my lookup file.