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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

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