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!

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, ...