Monitoring Splunk

saving db connect tmp files

a212830
Champion

Hi

I need to save the db connect tmp files for debugging purposes. Is there a way to tell db connect to save them?

Tags (1)
0 Karma
1 Solution

ziegfried
Influencer

DB Connect creates a batch input for moving data to Splunk. The batch input is defined in $SPLUNK_HOME/etc/apps/dbx/local/inputs.conf

[batch://$SPLUNK_HOME/var/spool/dbmon/*.dbmonevt]
crcSalt = <SOURCE>
disabled = 0
move_policy = sinkhole
sourcetype = dbmon:spool

You can simply disable this input, then it won't be deleted (and indexed). To continue to index the data and still preserve the files, you could turn it into a regular file monitor:

[monitor://$SPLUNK_HOME/var/spool/dbmon/*.dbmonevt]
crcSalt = <SOURCE>
disabled = 0
sourcetype = dbmon:spool

View solution in original post

0 Karma

ziegfried
Influencer

DB Connect creates a batch input for moving data to Splunk. The batch input is defined in $SPLUNK_HOME/etc/apps/dbx/local/inputs.conf

[batch://$SPLUNK_HOME/var/spool/dbmon/*.dbmonevt]
crcSalt = <SOURCE>
disabled = 0
move_policy = sinkhole
sourcetype = dbmon:spool

You can simply disable this input, then it won't be deleted (and indexed). To continue to index the data and still preserve the files, you could turn it into a regular file monitor:

[monitor://$SPLUNK_HOME/var/spool/dbmon/*.dbmonevt]
crcSalt = <SOURCE>
disabled = 0
sourcetype = dbmon:spool
0 Karma

a212830
Champion

Good stuff! Thanks.

0 Karma
Get Updates on the Splunk Community!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...