All Apps and Add-ons

Splunk Data ingestion duplication

smhsplunk
Communicator

Seems Splunk is ingesting same data after few minutes and creating duplicate events.
No problem with the log files ingestions, however data coming in from DB connect V2 is being ingested
again and again.

Anyone facing similar problem ?

0 Karma

preactivity
Path Finder

Use the raising column option. Set that to the date field. This will make sure you will not get duplicates.

0 Karma

woodcock
Esteemed Legend

If you only need to do it once, then set it up, let it run, and then disable it. Otherwise, it will run every time execution frequency time passes.

0 Karma

woodcock
Esteemed Legend

Is your rising column actually rising?

0 Karma

smhsplunk
Communicator

I am doing batch input.
These are stationary data I am collecting only once from postgresql using the DB Connect app.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What is the execution frequency of the DB Connect 2 input?

---
If this reply helps you, Karma would be appreciated.
0 Karma

smhsplunk
Communicator

I put 31104000 which is the number of seconds (approx) in a year. But I noticed after few minutes it ingested the data again.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Makes me wonder if the query failed and DBX2 is retrying. Is there anything in dbx2.log?

---
If this reply helps you, Karma would be appreciated.
0 Karma

smhsplunk
Communicator

I dont see any failing information in the dbx2.log.

I am using my search as index=X source=Y sourcetype=Z

As soon as I disable the index (X) from Menu->Settings->Indexes the query
says "No results found"

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Why disable the index? @woodcock suggested disabling the DBX2 input once it has read everything once.

---
If this reply helps you, Karma would be appreciated.
0 Karma

woodcock
Esteemed Legend

Don't disable the index, disable the input.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...