All Apps and Add-ons

splunk dbconnect how to obtain a list of all database connections

vincenp2
New Member

I have been asked to provide a list of all database connections enabled in db connect - can anyone supply a command to output this information so it can then be sent in csv format perhaps?
thanks

0 Karma

p_gurav
Champion

Hi vincenp2,

You can try using rest command :
| rest splunk_server=local /servicesNS/nobody/splunk_app_db_connect/configs/conf-db_connections/

arrangineni
Path Finder

@p_gurav How can we pull the same for identities?
This works for connections : | rest splunk_server=local /servicesNS/nobody/splunk_app_db_connect/configs/conf-db_connections/

0 Karma

vincenp2
New Member

Hi - thanks for the quick response - unfortunately nothing gets returned using the command you supplied - should I be substituting some parts of the command to match my environment?

0 Karma

p_gurav
Champion

Yes you have to modify it according to your environment. Try this one:

| rest splunk_server=local /servicesNS/nobody/splunk_app_db_connect/db_connect/connections
0 Karma
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!