<?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: Indexing same file: crcSalt = &amp;lt;SOURCE&amp;gt; not working as expected in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-file-crcSalt-lt-SOURCE-gt-not-working-as-expected/m-p/595268#M103973</link>
    <description>&lt;P&gt;Which takes precedence: the props.conf setting (CHECK_METHOD) or the inputs.conf setting (crcSALT)?&lt;/P&gt;&lt;PRE&gt;CHECK_METHOD = modtime&lt;BR /&gt;# Notes from props.conf spec&lt;BR /&gt;Set CHECK_METHOD to "modtime" to check only the modification &lt;BR /&gt;time of the file.&lt;/PRE&gt;&lt;LI-CODE lang="markup"&gt;crcSalt = &amp;lt;SOURCE&amp;gt;
# Notes from inputs.conf spec
# If set to the literal string "&amp;lt;SOURCE&amp;gt;" (including the angle brackets), the
# full directory path to the source file is added to the CRC. This ensures
# that each file being monitored has a unique CRC. When 'crcSalt' is invoked,
# it is usually set to &amp;lt;SOURCE&amp;gt;. &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 17:00:28 GMT</pubDate>
    <dc:creator>actionabledata</dc:creator>
    <dc:date>2022-04-25T17:00:28Z</dc:date>
    <item>
      <title>Indexing same file: crcSalt = &lt;SOURCE&gt; not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-file-crcSalt-lt-SOURCE-gt-not-working-as-expected/m-p/539664#M90393</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I need to ingest into Splunk a CSV file containing an inventory of mobile devices. The HF that monitors such directory is a Red Hat 8 server with Splunk 8.1.0 installed.&lt;BR /&gt;Since the file is about an inventory, the CSV file doesn't change frequently, and Splunk complains because the file is the same of the first indexed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;02-12-2021 03:00:04.466 +0100 ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=/path/to/file/filename_YYYY_mm_DD_HH_MM_SS_MILLIS.csv).  Last time we saw this initcrc, filename was different.  You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source.  Consult the documentation or file a support case online at http://www.splunk.com/page/submit_issue for more info.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As suggested in other posts, I added the following line in inputs.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CSV file is downloaded once a day using a REST call, and the file name has the timestamp appended at the end of the name, so I expected this option would help me to overcome the issue. But, despite I set the crcSalt, Splunk is keeping on complaining, skipping the file and giving me the same message as above.&lt;BR /&gt;Any idea about this issue? Am I doing anything wrong?&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 11:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-file-crcSalt-lt-SOURCE-gt-not-working-as-expected/m-p/539664#M90393</guid>
      <dc:creator>lpino</dc:creator>
      <dc:date>2021-02-12T11:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing same file: crcSalt = &lt;SOURCE&gt; not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-file-crcSalt-lt-SOURCE-gt-not-working-as-expected/m-p/542132#M90605</link>
      <description>&lt;P&gt;I solved simply by putting this into props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CHECK_METHOD = modtime&lt;/LI-CODE&gt;&lt;P&gt;Now it works as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 11:00:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-file-crcSalt-lt-SOURCE-gt-not-working-as-expected/m-p/542132#M90605</guid>
      <dc:creator>lpino</dc:creator>
      <dc:date>2021-03-03T11:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing same file: crcSalt = &lt;SOURCE&gt; not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-file-crcSalt-lt-SOURCE-gt-not-working-as-expected/m-p/595268#M103973</link>
      <description>&lt;P&gt;Which takes precedence: the props.conf setting (CHECK_METHOD) or the inputs.conf setting (crcSALT)?&lt;/P&gt;&lt;PRE&gt;CHECK_METHOD = modtime&lt;BR /&gt;# Notes from props.conf spec&lt;BR /&gt;Set CHECK_METHOD to "modtime" to check only the modification &lt;BR /&gt;time of the file.&lt;/PRE&gt;&lt;LI-CODE lang="markup"&gt;crcSalt = &amp;lt;SOURCE&amp;gt;
# Notes from inputs.conf spec
# If set to the literal string "&amp;lt;SOURCE&amp;gt;" (including the angle brackets), the
# full directory path to the source file is added to the CRC. This ensures
# that each file being monitored has a unique CRC. When 'crcSalt' is invoked,
# it is usually set to &amp;lt;SOURCE&amp;gt;. &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 17:00:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-file-crcSalt-lt-SOURCE-gt-not-working-as-expected/m-p/595268#M103973</guid>
      <dc:creator>actionabledata</dc:creator>
      <dc:date>2022-04-25T17:00:28Z</dc:date>
    </item>
  </channel>
</rss>

