All Apps and Add-ons

How do I implement the Splunk DB Connect app in a distributed environment?

Jeremiah
Motivator

Assuming I'm going to use the app to perform database lookups, is it necessary to install and configure the app on both the indexers and the search heads? Or do I only need to install it on the search heads?

Tags (2)
1 Solution

Dan
Splunk Employee
Splunk Employee

In version 1.0.7 there is no way to distribute lookups across indexers, short of setting up DB Connect on each of the indexers and configuring the same lookup on each one.

Instead, install on the search head. When you run lookups, use either one of the following to force the lookup from being distributed:

  • | localop | lookup
  • | lookup local=1

The reason for this is that the Java Bridge, for security reasons, must run locally on the instance that is querying the database. When Splunk replicates the dblookup.py script to indexers, which is part of the usual bundle replication done for all distributed searches, the dblookup.py on the indexer finds itself unable to query the database.

View solution in original post

jcoates_splunk
Splunk Employee
Splunk Employee

Hi,

we've just released DB Connect 1.1, which can now be installed on a search head pool.

app

search head pooling docs

Thanks,
Jack

Dan
Splunk Employee
Splunk Employee

In version 1.0.7 there is no way to distribute lookups across indexers, short of setting up DB Connect on each of the indexers and configuring the same lookup on each one.

Instead, install on the search head. When you run lookups, use either one of the following to force the lookup from being distributed:

  • | localop | lookup
  • | lookup local=1

The reason for this is that the Java Bridge, for security reasons, must run locally on the instance that is querying the database. When Splunk replicates the dblookup.py script to indexers, which is part of the usual bundle replication done for all distributed searches, the dblookup.py on the indexer finds itself unable to query the database.

Jeremiah
Motivator

Thanks. So, if I do put DB Connect on each indexer and configure the lookup exactly the same, it will work? And is there any plan to include the ability to distribute the lookups in the future?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...