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!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...