Getting Data In

Can I restart Splunk DB Connect's input without restarting the Splunk service?

tearic
Engager

Hi,

From Splunk DB Connect documentation:

Run : splunk cmd python $splunk_home/etc/apps/dbx/bin/reload.py databases 
It can reload database.conf without restart Splunk.

I need to script schedule update/modify DB input conf.
Any command can run like as above, reload input.conf without restarting Splunk.

But, I found "Note: Modifying inputs.conf file stanzas outside of the DB Connect app, such as in the search app or manager context, is not supported."

Is it possible to reload inputs.conf without restarting the Splunk Service?

Thank you.

1 Solution

andykuhn
Path Finder

If you are using a unix host, try the following from /opt/splunk/bin:

splunk _internal call /services/apps/local/dbx/_reload -auth admin:$ADMINPWD

It is important to note that although some components of the app can be reloaded in this manner (databases.conf for password encryption), other components (like the java bridge server) will require a restart as per the output message from the command above:

Restart required by:

ui-prefs, authorize, java, web, ui-prefs

View solution in original post

andykuhn
Path Finder

If you are using a unix host, try the following from /opt/splunk/bin:

splunk _internal call /services/apps/local/dbx/_reload -auth admin:$ADMINPWD

It is important to note that although some components of the app can be reloaded in this manner (databases.conf for password encryption), other components (like the java bridge server) will require a restart as per the output message from the command above:

Restart required by:

ui-prefs, authorize, java, web, ui-prefs

dwtung
Explorer

For DB Connect v2, I had to use this command (sudo as splunk user):

./splunk _internal call /services/apps/local/splunk_app_db_connect/_reload -auth admin:$ADMINPWD

varad_joshi
Communicator

This helped. Thank you so much.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...