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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...