All Apps and Add-ons

DB Connect and sourcetypes

rossparfect
Path Finder

Good evening,

I was using DB connect and it was forwarding events to my indexers, searches were working and everything was great,

However the DBA then cleaned the source DB the events were coming from and now my index is empty, no events and no sourcetype, ,

Therefore a few questions,

  1. Should I create my sourcetype on the SH as well as when its created on the HF (where DB Connect is installed).
  2. When the source DB is cleaned and all events removed is it expected behaviour that it would remove events from the Splunk Indexes as well ?

Thanks

R

0 Karma

ivanreis
Builder

Dear rossparfect,
Answering your questions:
1 - the sourcetype have to be created on the HF where the DB Connect is installed, because it will be used to identify your data for the indexing pipeline.

2 - As far as I know, if the source DB table is cleaned it should not cleanup the splunk index because once the data is indexed you cannot change the data, although the retention/max volume parameters from the particular index is reached or someone cleanup all the events to the this particular index, thus the user have to have admin rights and splunk service must to be stopped to run the clean command. Per my knowledge, only dblookup function run the queries on the source DB tables, but did not index any data into splunk, it is being used to enrich data into splunk.
for further information about dblookup, check this document -> https://docs.splunk.com/Documentation/DBX/3.2.0/DeployDBX/Createandmanagedatabaselookups

I suggest for you to troubleshoot the dbconnect to identify the possible issue, please check this document -> https://docs.splunk.com/Documentation/DBX/3.2.0/DeployDBX/Troubleshooting#DB_Connect_logging

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...