<?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: crcSalt issue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24136#M3794</link>
    <description>&lt;P&gt;Please can any one help me on this issue.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2011 06:13:57 GMT</pubDate>
    <dc:creator>sushildabare</dc:creator>
    <dc:date>2011-11-30T06:13:57Z</dc:date>
    <item>
      <title>crcSalt issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24135#M3793</link>
      <description>&lt;P&gt;We have used below monitor in inputs.conf&lt;BR /&gt;
[monitor:///usr/sap/IXP/SYS/profile/DEFAULT.PFL]&lt;/P&gt;

&lt;P&gt;disabled = false&lt;/P&gt;

&lt;P&gt;sourcetype = defprof&lt;/P&gt;

&lt;P&gt;index = erp&lt;/P&gt;

&lt;P&gt;crcSalt = defprof&lt;/P&gt;

&lt;P&gt;Few days back I could see the full content of this DEFAULT.PFL file in indexer search.&lt;BR /&gt;
Suddenly today when I searched the same its showing only first 4-5 lines of this file.&lt;/P&gt;

&lt;P&gt;I checked in somefile.out file, but no errors there.&lt;/P&gt;

&lt;P&gt;But when I changed the sourcetype and crcSalt string suddenly I could see the full file content in Indexer.&lt;BR /&gt;
Please let me know what could be the reason for this and why its working after changing the string. This is very strange, kindly help us to fix this issue.&lt;/P&gt;

&lt;P&gt;Thanks|Rajashekhar&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2011 10:43:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24135#M3793</guid>
      <dc:creator>sushildabare</dc:creator>
      <dc:date>2011-11-29T10:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: crcSalt issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24136#M3794</link>
      <description>&lt;P&gt;Please can any one help me on this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2011 06:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24136#M3794</guid>
      <dc:creator>sushildabare</dc:creator>
      <dc:date>2011-11-30T06:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: crcSalt issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24137#M3795</link>
      <description>&lt;P&gt;Can any one please provide your advice on this issue.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 04:36:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24137#M3795</guid>
      <dc:creator>sushildabare</dc:creator>
      <dc:date>2011-12-01T04:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: crcSalt issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24138#M3796</link>
      <description>&lt;P&gt;CRCSALT is used to make files look different to splunk. Without it, splunk loads the first and last 256 bytes and uses that to create a hash which it then compares with other files. If you define CRCSALT,  its value is added before the hash is calculated so the file looks different.&lt;/P&gt;

&lt;P&gt;What you have done is add a fixed string "defprof" as the CRCSALT. This will make the file look different once. The next time a similar file arrives, it will be ignored again.&lt;/P&gt;

&lt;P&gt;If you use " &lt;CODE&gt;CRCSALT = &amp;lt;SOURCE&amp;gt;&lt;/CODE&gt; " including &amp;lt;&amp;gt; and capitalisation, splunk will use the source file and folder name which will change for every file. Therefore each file looks diferent.&lt;/P&gt;

&lt;P&gt;From inputs.conf.spec&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;crcSalt = &amp;lt;string&amp;gt;
* Use this setting to force Splunk to consume files that have matching CRCs (cyclic redundancy checks). (Splunk only 
  performs CRC checks against the first few lines of a file. This behavior prevents Splunk from indexing the same 
  file twice, even though you may have renamed it -- as, for example, with rolling log files. However, because the 
  CRC is based on only the first few lines of the file, it is possible for legitimately different files to have 
  matching CRCs, particularly if they have identical headers.)
* If set, &amp;lt;string&amp;gt; is added to the CRC.
* 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;.
* Be cautious about using this attribute with rolling log files; it could lead to the log file being re-indexed 
  after it has rolled. 
* Defaults to empty. 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2011 08:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24138#M3796</guid>
      <dc:creator>BobM</dc:creator>
      <dc:date>2011-12-01T08:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: crcSalt issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24139#M3797</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Thanks for your answer.&lt;BR /&gt;
Before trying the fixed string, we did try "crcSalt = &lt;SOURCE&gt;" which did not work as well.&lt;BR /&gt;
That time also it was showing only first few lines not the full file content.&lt;BR /&gt;
Moreover the file in question does not get updated very often(may be once/twice a year this file will be modified with few new lines), still splunk is not indexing it.&lt;BR /&gt;
Without using crcSalt also splunk was not indexing this file.&lt;BR /&gt;
Please suggest how to fix this.&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Rajashekhar&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 09:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24139#M3797</guid>
      <dc:creator>sushildabare</dc:creator>
      <dc:date>2011-12-01T09:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: crcSalt issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24140#M3798</link>
      <description>&lt;P&gt;sweet and short, thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 12:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/crcSalt-issue/m-p/24140#M3798</guid>
      <dc:creator>josephka333</dc:creator>
      <dc:date>2020-03-02T12:33:44Z</dc:date>
    </item>
  </channel>
</rss>

