Splunk Search

Perform a Lookup from results of another search

agodoy
Communicator

I want to use the clientip field of an access_combined log to get the reported username from a bigfix search.

The bigfix search I am using is:

search index=bigfix sourcetype="software_inventory" | makemv delim="," src_ip | mvexpand src_ip | table src_ip, host, user_name

How would I go about correlating clientip to src_ip and adding the user_name field without having to build a csv and setup an automatic lookup.

Thanks!

0 Karma
1 Solution

yannK
Splunk Employee
Splunk Employee

try a join.

mysearchonaccess_combined | table fieldA fieldB | join fieldB [ search mysearchonbigfix | table fieldB fieldC ]

Remark : the join will not go over 10 000 results for the sub search to try to limit your scope or regroup your results.

View solution in original post

0 Karma

yannK
Splunk Employee
Splunk Employee

try a join.

mysearchonaccess_combined | table fieldA fieldB | join fieldB [ search mysearchonbigfix | table fieldB fieldC ]

Remark : the join will not go over 10 000 results for the sub search to try to limit your scope or regroup your results.

0 Karma

agodoy
Communicator

Worked beautifully! Thanks!

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...