<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why is the batch input not indexing certain files? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-batch-input-not-indexing-certain-files/m-p/417501#M73688</link>
    <description>&lt;P&gt;The crc check works the same way in batch files as in normal files (as far as I know).&lt;BR /&gt;
Therefore the initCrcLength would be the number of bytes to read from the file to run the checksum on.&lt;/P&gt;

&lt;P&gt;You could also use the props.conf to change your checksum method (CHECK_METHOD) or add a crcSalt if the file names are unique.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 23:38:49 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2018-07-13T23:38:49Z</dc:date>
    <item>
      <title>Why is the batch input not indexing certain files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-batch-input-not-indexing-certain-files/m-p/417497#M73684</link>
      <description>&lt;P&gt;I have created a sub folder on a windows splunk indexer in which each night a sub directory named for today's date with several files gets copied from a source for indexing &amp;amp; subsequent deleting. There is no whitelist/blacklist applied, everything in this folder goes into the same index, same source type, etc. Simple batch input. My issue is certain files are not being indexed and deleted. They tend to be the bigger ones. Is it possible the file isn't done writing when splunk tried to index it and it gives up or something? I can't fathom why some files work and some don't. The data does not get indexed for the files that are not deleted.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 12:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-batch-input-not-indexing-certain-files/m-p/417497#M73684</guid>
      <dc:creator>grantsmiley</dc:creator>
      <dc:date>2018-05-24T12:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the batch input not indexing certain files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-batch-input-not-indexing-certain-files/m-p/417498#M73685</link>
      <description>&lt;P&gt;It was a crcSalt issue, resolved. Important safety tip, Batch input, even though destructive, still recognizes crcSalt of files that aren't there. &lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 12:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-batch-input-not-indexing-certain-files/m-p/417498#M73685</guid>
      <dc:creator>grantsmiley</dc:creator>
      <dc:date>2018-05-24T12:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the batch input not indexing certain files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-batch-input-not-indexing-certain-files/m-p/417499#M73686</link>
      <description>&lt;P&gt;Please accept your own answer so this is marked as resolved.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 22:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-batch-input-not-indexing-certain-files/m-p/417499#M73686</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-05-24T22:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the batch input not indexing certain files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-batch-input-not-indexing-certain-files/m-p/417500#M73687</link>
      <description>&lt;P&gt;I'd appreciate an ELI5 regarding the statement in the accepted answer: "batch input, even though destructive, still recognizes crcSalt of files that aren't there."&lt;/P&gt;

&lt;P&gt;I've inherited a similar situation where batch input won't delete certain files.  I suspected it has something to do with the initCrcLength parameter, but I'm having a hard time grasping how that setting works with batch.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch:///opt/sbox/data/Proxies/]
move_policy = sinkhole
disabled = false
index = iron_proxy
sourcetype = cisco:wsa:squid
host_regex = \/opt\/sbox\/data\/Proxies\/(\w+)
initCrcLength = 1048576
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Jul 2018 00:11:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-batch-input-not-indexing-certain-files/m-p/417500#M73687</guid>
      <dc:creator>robertl_kinney</dc:creator>
      <dc:date>2018-07-13T00:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the batch input not indexing certain files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-batch-input-not-indexing-certain-files/m-p/417501#M73688</link>
      <description>&lt;P&gt;The crc check works the same way in batch files as in normal files (as far as I know).&lt;BR /&gt;
Therefore the initCrcLength would be the number of bytes to read from the file to run the checksum on.&lt;/P&gt;

&lt;P&gt;You could also use the props.conf to change your checksum method (CHECK_METHOD) or add a crcSalt if the file names are unique.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 23:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-batch-input-not-indexing-certain-files/m-p/417501#M73688</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-07-13T23:38:49Z</dc:date>
    </item>
  </channel>
</rss>

