Deployment Architecture

DB Connect in a Clustered Environment: Why am I getting missing python script errors, failed configuration bundle distribution and duplicate data?

cwilmoth
Path Finder

We have a master cluster, 2 search heads and 2 indexers in our setup. We have done development on a standalone server and are now moving the configuration to the cluster. I put the dbx app out in the /opt/splunk/etc/master-apps directory so that it gets distributed to both indexers, but we are seeing some issues:
- Configuration bundle distribution fails from the UI on the master cluster server. It complains about invalid stanzas and spec files. If I do a distribution from the command line with the --skip-validation option, everything goes out and the db connections gather data like they are supposed to. Why is this complaining when performing validation?
- Unable to list the database inputs on the indexers. When I click on Settings->Data Inputs, I see that there are 2 Database INputs listed which is correct. When I click on the database inputs link to list them, I get "An error occurred completing this request: In handler 'dbx-monitors': Cannot call handler 'dbx-monitors' due to missing script 'rest_handler_dbmon.py'". I verified that this file exists under the /opt/splunk/etc/slave-apps/dbx directory, so not sure why this is erroring out.
- Unable to list the external databases on the indexers. When I click on Settings->External Databases, I get "An error occurred completing this request: In handler 'databases': Cannot call handler 'databases' due to missing script 'rest_handler_dbs.py'". I also verified that this file exists under slave-apps.
- Lastly, I was under the impression that if you had two peer servers in a cluster synchronizing the same indexes that there would be no duplicates. We are querying data from the same source db tables and putting them into the same indexes on both peers and we are seeing two of every row. Is there a setting we need to set to deduplicate?

Thanks.

1 Solution

araitz
Splunk Employee
Splunk Employee

Sorry, DB Connect is not currently certified or supported with clustering. I'll open an issue to see if we can increase our coverage for the next version of the product.

View solution in original post

araitz
Splunk Employee
Splunk Employee

Sorry, DB Connect is not currently certified or supported with clustering. I'll open an issue to see if we can increase our coverage for the next version of the product.

andrey2007
Contributor

So, it is about indexer cluster, but what is about Search Head Cluster? Is it possible to use DB connect for lookups in external database in SH cluster?

0 Karma

Lucas_K
Motivator

Its not "supported" in shc mode but I have gotten it somewhat working.

There are a couple of ways to do this.

Either have a locally maintained install on each member OR use a shared splunk.secret file on each member and use a deployer based unique database.conf file. You will need one of the systems to originally generate the password hashes that are used so they are consistent across all the members.

I have run into a couple of weird issues I am trying to resolve with this configuration however.

0 Karma
Get Updates on the Splunk Community!

What's New in Splunk Enterprise 9.4: Features to Power Your Digital Resilience

Hey Splunky People! We are excited to share the latest updates in Splunk Enterprise 9.4. In this release we ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

SignalFlow: What? Why? How?

What is SignalFlow? Splunk Observability Cloud’s analytics engine, SignalFlow, opens up a world of in-depth ...