Getting Data In

Splunk will index an individual file, but will not index multiple files in the same directory as the original file

carpga
New Member

We had been updating an index with data from an individual file. However over the course of time this file grows large and slows down processes dependent upon the file to submit updates. So we modified our input to use the same directory where the initial file was located and create a daily file for indexing. Splunk appears to recognize the files exist, however is not indexing any of the data from files contained in the directory. These are csv files and we removed the header so each file would have a new unique name with new data in each file. However this does not appear to have remediated the issue as files are created. Again, Splunk can see the file count and is accurate, but no data is being indexed.

Tags (3)
0 Karma

n00badmin
Communicator

First thing is to determine whether Splunk is ignoring the file...

You can use the tailing processor url covered in this blog:

http://blogs.splunk.com/2011/01/02/did-i-miss-christmas-2/

Or I use the input stats in Splunk on Splunk

Or check your logs...

My first guess would be that you either need a longer initcrclength or crcsalt = source more on these here:
http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Howlogfilerotationishandled

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Unlocking Unified Insights: New Gigamon Federated Search App for Splunk

In today’s data-heavy environment, organizations are caught in a data distribution dilemma. As data volumes ...

GA: New Data Management App in Splunk Platform

Streamlining Data Management: Introducing a unified experience in Splunk Managing data at scale shouldn’t feel ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...