Splunk Enterprise

Query DBX internal logs for Input and which index, source, souretype its written to

aa70627
Communicator

I know you can search for list of all db connect jobs and when they've ran historically within the internal logs, which gets you how long the query ran, # events and error count. Is there anyway to get which index, source and sourcetype it was written to without having to check on the DB Connection inputs ? For example, I'd like to know where it was written and if anything has changed since it ran? 

index=_internal sourcetype=dbx* status=* input_name

 

 

Labels (1)
0 Karma

aa70627
Communicator

I'm guessing the answer is no. I've taken this with a different approach - using the DB Connect rest api. If anyone knows of a better way for this, please post. Greatly appreciated. 

 

 

| rest  splunk_server=localhost /servicesNS/nobody/splunk_app_db_connect/properties/db_inputs/
| table title, updated
| rename title as dbinput_name 
| join type=left dbinput_name
[| rest  splunk_server=localhost /servicesNS/nobody/splunk_app_db_connect/properties/db_inputs/
    | fields title 
| map search="| rest  splunk_server=localhost /servicesNS/nobody/splunk_app_db_connect/properties/db_inputs/$title$/index|eval dbinput_name = \"$title$\", index=value|table dbinput_name index" maxsearches=400]
| join type=left dbinput_name
[| rest  splunk_server=va10dlvspl301 /servicesNS/nobody/splunk_app_db_connect/properties/db_inputs/
    | fields title 
| map search="| rest  splunk_server=va10dlvspl301 /servicesNS/nobody/splunk_app_db_connect/properties/db_inputs/$title$/sourcetype|eval dbinput_name = \"$title$\", sourcetype=value|table dbinput_name sourcetype" maxsearches=400]

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...