Splunk Search

Splunk indexes some events several times?

cfortune
Explorer

In some of our indexed logs, I'll see several log entries for the same log at the same time. I thought this may be an issue with the log file itself but I just checked and sure enough, there aren't several of the same event from the same time in there. Any idea what could be causing this?

Here is a screen shot.

The number 11196 is a unique id associated with that particular log in. As you can see, it's the same for all 10 results shown. If someone really logged in that fast, they'd have different id's there. There is an 8 hour timezone offset applied to these logs as well. Don't know if that has anything to do with it.

Also, these logs are indexed via a cifs mount on the Splunk server.

Tags (1)
0 Karma

gkanapathy
Splunk Employee
Splunk Employee

There are applications that, in addition to adding log entries to the end of the file, will also rewrite some data at the beginning. If yours does this, then each time it writes, it will make Splunk think the entire file is new (since the beginning of the file has changed) and the entire file will be re-indexed.

dwaddle
SplunkTrust
SplunkTrust

Try putting a Splunk forwarder on the machine which holds this data, and let the forwarder read the file locally and then forward the events on to the indexer.

I don't use CIFS, but I have seen some similarly odd events indexing over NFS - the application's buffer flushing behavior combined with the timing of the NFS reads would cause some odd behaviors that we eliminated using a forwarder.

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...