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

akif_koc
Loves-to-Learn
| rest splunk_server=local /servicesNS/nobody/splunk_app_db_connect/configs/conf-identities
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
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...