<?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: How to avoid reindexing files after setting crcSalt= in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371905#M67504</link>
    <description>&lt;P&gt;Thank you again for this suggestion @niketnilay. The files however are rolling log files so I think this wont be efficient.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2017 07:33:24 GMT</pubDate>
    <dc:creator>arielpconsolaci</dc:creator>
    <dc:date>2017-07-03T07:33:24Z</dc:date>
    <item>
      <title>How to avoid reindexing files after setting crcSalt=</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371901#M67500</link>
      <description>&lt;P&gt;I've came across an issue where my monitored files are not all indexed and I came to know that this is because they start with similar long headers. Upon research, I was introduced to setting crcSalt= as a solution. However, setting this will reindex the files (its contents) that are already indexed. &lt;/P&gt;

&lt;P&gt;The file I am indexing gets updated with new entries at different time intervals. How do I address this to avoid reindexing old entries of the file and only index new lines/events? I am seeing ignoreOlderThan and check_method to deal with this. Can anyone suggest the best way for my scenario? Thanks in advance.&lt;/P&gt;

&lt;P&gt;Scenario:&lt;BR /&gt;
system1.log - 5 events&lt;BR /&gt;
system2.log - 5 events&lt;BR /&gt;
system3.log - 5 events&lt;BR /&gt;
system4.log - 5 events&lt;/P&gt;

&lt;P&gt;Due to similar headers( I need to index all), only below are indexed.&lt;BR /&gt;
system1.log - 5 events&lt;BR /&gt;
system3.log - 5 events&lt;/P&gt;

&lt;P&gt;Incorporating crcSalt= as  a fix&lt;BR /&gt;
system1.log - 10 events&lt;BR /&gt;
system2.log - 5 events&lt;BR /&gt;
system3.log - 10 events&lt;BR /&gt;
system4.log - 5 events&lt;/P&gt;

&lt;P&gt;How do I avoid reindexing already indexed files to have the result below, and continously index new events when the below data are updated?&lt;BR /&gt;
system1.log - 5 events&lt;BR /&gt;
system2.log - 5 events&lt;BR /&gt;
system3.log - 5 events&lt;BR /&gt;
system4.log - 5 events&lt;/P&gt;

&lt;P&gt;Appreciate Responses.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 05:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371901#M67500</guid>
      <dc:creator>arielpconsolaci</dc:creator>
      <dc:date>2017-06-27T05:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid reindexing files after setting crcSalt=</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371902#M67501</link>
      <description>&lt;P&gt;You might have to use the combination of  &lt;STRONG&gt;ignoreOlderThan&lt;/STRONG&gt; and followTail&lt;BR /&gt;
Refer to answer: &lt;A href="https://answers.splunk.com/answers/508545/how-to-avoid-indexing-events-twice-when-applying-c.html"&gt;https://answers.splunk.com/answers/508545/how-to-avoid-indexing-events-twice-when-applying-c.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Refer to Splunk Documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf#MONITOR:"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf#MONITOR:&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If your existing logs have already been indexed, you can also remove them prior to turning on &lt;CODE&gt;crcSalt=&amp;lt;SOURCE&amp;gt;&lt;/CODE&gt;. Please test out your inputs conf changes in Non-Production system first to ensure data being indexed is not getting duplicated.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 08:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371902#M67501</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-06-27T08:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid reindexing files after setting crcSalt=</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371903#M67502</link>
      <description>&lt;P&gt;Thank you @niketnilay.&lt;BR /&gt;
I am encountering a scenario though upon testing. &lt;BR /&gt;
All files are continuously updated over time. But incorporating ignoreOlderThan will ignore the files, and will not index new events, unless the forwarders are restarted.&lt;/P&gt;

&lt;P&gt;Are there any other ways to address avoiding reindexing already indexed files?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 03:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371903#M67502</guid>
      <dc:creator>arielpconsolaci</dc:creator>
      <dc:date>2017-07-03T03:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid reindexing files after setting crcSalt=</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371904#M67503</link>
      <description>&lt;P&gt;@arielpconsolacion, One of the crude ways would be to do this crcSALT change during maintenance window. First move the files already indexed to a different location (not being monitored by Splunk). Then apply the crcSALT change. Not sure if this is feasible in your case.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 05:42:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371904#M67503</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-03T05:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid reindexing files after setting crcSalt=</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371905#M67504</link>
      <description>&lt;P&gt;Thank you again for this suggestion @niketnilay. The files however are rolling log files so I think this wont be efficient.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 07:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371905#M67504</guid>
      <dc:creator>arielpconsolaci</dc:creator>
      <dc:date>2017-07-03T07:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid reindexing files after setting crcSalt=</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371906#M67505</link>
      <description>&lt;P&gt;-- I came to know that this is because they start with similar long headers. Upon research, I was introduced to setting &lt;CODE&gt;crcSalt=&lt;/CODE&gt; as a solution.&lt;/P&gt;

&lt;P&gt;For long headers &lt;CODE&gt;initCrcLen&lt;/CODE&gt; is the solution and not &lt;CODE&gt;crcSalt=&amp;lt;SOURCE&amp;gt;&lt;/CODE&gt;. &lt;CODE&gt;crcSalt=&amp;lt;SOURCE&amp;gt;&lt;/CODE&gt; jeopardizes the entire Splunk algorithm and we need to be careful using it ; - )&lt;/P&gt;

&lt;P&gt;Apparently, these two are quite often being confused and in our place it became pretty messy due to this confusion. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371906#M67505</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-07-03T13:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid reindexing files after setting crcSalt=</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371907#M67506</link>
      <description>&lt;P&gt;Wish I could upvote this three or four times.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:51:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371907#M67506</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2017-07-03T13:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid reindexing files after setting crcSalt=</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371908#M67507</link>
      <description>&lt;P&gt;you are too kind @dwaddle ; -) and you made my day.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 14:05:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371908#M67507</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-07-03T14:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid reindexing files after setting crcSalt=</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371909#M67508</link>
      <description>&lt;P&gt;Thank you for the response, @ddrillic. Will test this parameter in non-prod and update this trail. Will incorporating initCrcLength would not encounter an issue in reindexing already indexed events?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 02:33:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371909#M67508</guid>
      <dc:creator>arielpconsolaci</dc:creator>
      <dc:date>2017-07-13T02:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid reindexing files after setting crcSalt=</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371910#M67509</link>
      <description>&lt;P&gt;i have tried this, but i had an issue in reindexing already indexed files as well.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 02:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371910#M67509</guid>
      <dc:creator>arielpconsolaci</dc:creator>
      <dc:date>2017-07-13T02:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid reindexing files after setting crcSalt=</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371911#M67510</link>
      <description>&lt;P&gt;So, are you ok now? &lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 12:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-reindexing-files-after-setting-crcSalt/m-p/371911#M67510</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-07-13T12:44:18Z</dc:date>
    </item>
  </channel>
</rss>

