Splunk Search

How to add inputlookup and outputlookup in same search

yuwtennis
Communicator

Hi!

I would like to know if it is possible to add outputlookup and inputlookup in same search.
My purpose is to create a table dynamically and use it in other sub searches.

I thought this can be possible by using subsearches but bit struggling with it.

index=hoge
[ sub search
outputlookup
return ""
]
[ | inputlookup xxxxx]

but alsways the inputlookup runs before the outputlookup.

Any suggestions ?

Thanks,
Yu

Tags (2)
0 Karma

splunkdevabhi
Explorer

eventtype=snow_cmdb_ci_list | dedup sys_id | fields - _bkt, _cd,_indextime,_kv,_raw,_serial,_si,_sourcetype,_subsecond, punct, index, source, sourcetype | inputlookup append=t cmdb_ci_list_lookup | dedup sys_id | outputlookup cmdb_ci_list_lookup

0 Karma

Ayn
Legend

Subsearches always run before the outer searches, as for the order in which subsearches themselves run I don't think there's a guaranteed order for that.

Please tell us more about exactly what you want to accomplish, with examples.

splunkdevabhi
Explorer

Found one such example from Splunk Add-on for ServiceNow :

eventtype=snow_cmdb_ci_list | dedup sys_id | fields - _bkt, _cd,_indextime,_kv,_raw,_serial,_si,_sourcetype,_subsecond, punct, index, source, sourcetype | inputlookup append=t cmdb_ci_list_lookup | dedup sys_id | outputlookup cmdb_ci_list_lookup

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...