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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...