Splunk Search

inputlookup with database lookup

rdownie
Communicator

Is there a way to use a database lookup in the way you would using inputlookup? If I wanted to just dump the contents to be searched against? I can do it with dbquery but wonder if there is a way to do this with inputlookup or lookup? I believe inputlookup only work with files (possibly an enhancement?).


This works for file based lookup, would like similar mechanism for database lookup(using dbconnect)

| inputlookup LOOKUPDBTABLE | search BAR_CODE="123*"

Below does not work.

| stats count | eval BAR_CODE="123*" | lookup LOOKUPDBTABLE BAR_CODE

Thanks,
Bob

jcoates_splunk
Splunk Employee
Splunk Employee
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 ...