Getting Data In

Why am I seeing Duplicate data (_raw)?

VijaySrrie
Builder

Hi,

I could see duplicate data in splunk by using below query

index="indexname"
| stats count by _raw
| where count >1

 

I checked 10 different indexes out of which 8 indexes are having duplicate logs


 

Labels (1)
Tags (2)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Apart from the issues already covered by @ITWhisperer and @gcusello there is also the possibility of duplication caused by useACK parameter, communication problems and retrasnsmission. Check your _internal log for "possible duplication".

gcusello
SplunkTrust
SplunkTrust

Hi @VijaySrrie,

you have to analyze your data sources: some of them aren't correctly configurated.

The most common misconfigurations are the following:

  • installed forwarders in an active/active cluster,
  • receiving syslog using two syslog servers but without a Load Balancer,
  • use the crcSal = <SOURCE> with logs that rotate or tar the old files.

the first job should be, using the following search, undertanding of what are the duplicated data source:

index="indexname"
| stats values(sourcetype) AS sourcetype count by _raw
| where count>1

in this way you have the list of duplicated sourcetypes and you can focus your analyis on those sourcetypes.

Then, if the duplicated sourcetypes come from a cluster or syslogs, you should analize your architecture to understand eventual duplications.

Ciao.

Giuseppe

ITWhisperer
SplunkTrust
SplunkTrust

Other duplications can come from how your logs are managed at source, e.g.  are they replicated across multiple servers, or are they renamed and picked up multiple times. Try these to find these sorts of occurrences.

index="indexname"
| stats values(source) AS source count by _raw
| where count>1
index="indexname"
| stats values(host) AS host count by _raw
| where count>1
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...