Splunk Search

Can we use DBconnect lookup for correlation of lookup file data with DB input data before indexing?

arrangineni
Path Finder

Hello,

I just want to know if this scenario can be achieved in splunk with DB connect Lookups . I am getting data from the Database through DBconnect inputs and I want to correlate my database data with a CSV file data, but I need to happen this within the DB connect input SQL query execution.

Is it possible to do this or any other alternative?

Thanks

0 Karma
1 Solution

jkat54
SplunkTrust
SplunkTrust

Yes, the dbconnect app supports sql query directly via lookups.

You can also use the dbxquery search command combined with the outputlookup command to generate lookups on the fly or by scheduling the search to run at certain times.

Please refer to the dbconnect documentation on how to do so.

View solution in original post

0 Karma

jkat54
SplunkTrust
SplunkTrust

Yes, the dbconnect app supports sql query directly via lookups.

You can also use the dbxquery search command combined with the outputlookup command to generate lookups on the fly or by scheduling the search to run at certain times.

Please refer to the dbconnect documentation on how to do so.

0 Karma

arrangineni
Path Finder

Thanks for your reply. But what I am looking for is I already have a CSV file with me in Splunk and I wanted it to be correlated with the database input before the resultant data gets indexed into splunk to skip the unwanted data and index only the matched field. Any advise?

0 Karma

jkat54
SplunkTrust
SplunkTrust

Yes you can do that with dbxquery command, lookup and collect commands

So you upload your CSV as lookup and do a search like this:

| dbxquery ... | lookup csvFileName.csv ... | collect index=indexName

0 Karma
Get Updates on the Splunk Community!

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

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

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...