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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...