Monitoring Splunk

Splunk not picking up all the files from the folder it is Monitoring

raja21
Explorer

I am using Splunk 7.0.1, Trial Version.

I have a folder that consists of JSON records.
These JSON records are created by a Python script by parsing a log file.

On keeping that folder to monitor in Splunk i see that Splunk is not indexing all the files.
Lets say if i have 2 lakh files then Splunk has only indexed 1 lakh files.

Each JSON record is of 4-5 Kb.
And the content of each JSON record is different.

I also checked that the daily usage policy of 500 Mb is not crossed.

I don't know where i'm going wrong.
Please help me.

Tags (1)
0 Karma

hortonew
Builder

Investigate splunkd.log on the forwarder collecting the files for tailingprocessor messages. Also, if each JSON record has the same header (first 256b) then it's possible splunk thinks they're the same file and it's skipping some. In inputs.conf, you can control initCrcLength and crcSalt. Try setting crcSalt=<SOURCE> which will let splunk index files with the same CRC value.

0 Karma

raja21
Explorer

Hi @hortonew i edited my inputs.cong and added crcSalt = < S O U R C E >
Still it is not picking up all the JSON records in the folder.

P.s I added in the extra spaces as it was not posting it

0 Karma

trenin
Explorer

Did you ever solve your problem? I think I am having the same problem.

0 Karma
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 ...