<?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: Reindex entire file when file is updated. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43747#M8167</link>
    <description>&lt;P&gt;just got around to trying out "entire_md5".  No dice. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Appended events still show up on their own. For changes in locations anywhere else in the file its fine.&lt;/P&gt;</description>
    <pubDate>Sun, 26 May 2013 23:24:04 GMT</pubDate>
    <dc:creator>Lucas_K</dc:creator>
    <dc:date>2013-05-26T23:24:04Z</dc:date>
    <item>
      <title>Reindex entire file when file is updated.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43744#M8164</link>
      <description>&lt;P&gt;I have already read this older thread on the subject -&amp;gt; : &lt;A href="http://splunk-base.splunk.com/answers/5426/entire-file-contents-as-a-single-event"&gt;http://splunk-base.splunk.com/answers/5426/entire-file-contents-as-a-single-event&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What i'd like to know is if there is a way to reindex the entire file upon change regardless of change type.&lt;/P&gt;

&lt;P&gt;Using the method in the link above if you remove or add to the file anywhere inside it (apart from the end) the entire file will be indexed as a separate event (what I want). If I append a single entry to it only that event will show up.&lt;/P&gt;

&lt;P&gt;My line breaks are fine (entire file is being indexed as a single event). Its only these additions that seem to break what I am trying to achieve.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2013 06:02:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43744#M8164</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2013-05-23T06:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reindex entire file when file is updated.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43745#M8165</link>
      <description>&lt;P&gt;You may be able to do this using a &lt;CODE&gt;props.conf&lt;/CODE&gt; setting similar to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/path/to/file]
CHECK_METHOD = entire_md5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Unlike most props.conf settings, this needs to be done on the forwarder itself.  &lt;/P&gt;

&lt;P&gt;(Or as pyro says, "mhhhhhf mhhhhhhhf mhhf mhffff")&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2013 18:54:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43745#M8165</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2013-05-23T18:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reindex entire file when file is updated.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43746#M8166</link>
      <description>&lt;P&gt;"entire_md5" ... wow. Never seen that one before.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2013 00:32:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43746#M8166</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2013-05-24T00:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reindex entire file when file is updated.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43747#M8167</link>
      <description>&lt;P&gt;just got around to trying out "entire_md5".  No dice. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Appended events still show up on their own. For changes in locations anywhere else in the file its fine.&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2013 23:24:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43747#M8167</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2013-05-26T23:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reindex entire file when file is updated.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43748#M8168</link>
      <description>&lt;P&gt;well a month on and i'm not closer to getting this to work. As the only other way i've found to do this is fschange and that is a depreciated method that I'd rather not create an entire app around.&lt;/P&gt;

&lt;P&gt;I'm finding all the monitor options relate to how a change is detected and not what constitutes the new event inside (via seekptr).&lt;/P&gt;

&lt;P&gt;So ... check_method = entire_md5|modtime doesn't actually get the results im after. What i'm really trying to do is somehow set the seekptr to 0. ie. the monitor shouldn't know where it was upto in the file ... thus reindex the entire thing.&lt;/P&gt;

&lt;P&gt;If anything in the monitored file is updated EXCEPT for the something including a change on the last line then it works. If its JUST the last line then it doesn't &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Its not consistent in its behaviour.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43748#M8168</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2020-09-28T14:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reindex entire file when file is updated.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43749#M8169</link>
      <description>&lt;P&gt;Well to be fair you ARE bending the functionality a bit. It might be a better idea to do this as some kind of scripted input. That way you're in full control of the solution and can tailor it more to your needs.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2013 07:19:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43749#M8169</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-06-24T07:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reindex entire file when file is updated.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43750#M8170</link>
      <description>&lt;P&gt;We'll i could but that could add system dependencies that I was trying to avoid. I also don't get the close to real time monitoring with a scripted input. &lt;/P&gt;

&lt;P&gt;I mean the functionality is right there already inside the inputs.conf. And it is already correctly watching and updating what changes are occurring in files in close to realtime.&lt;/P&gt;

&lt;P&gt;I'll give the scripted input and see how much I need to wind it up to get what we are after.&lt;/P&gt;

&lt;P&gt;I might also have a poke around the pci app and i'm sure I saw a similar feature.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2013 09:18:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43750#M8170</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2013-06-24T09:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reindex entire file when file is updated.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43751#M8171</link>
      <description>&lt;P&gt;Hi Lucas,&lt;BR /&gt;
I wonder whether you found a solution for this issue ?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Doron&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 14:29:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43751#M8171</guid>
      <dc:creator>marcus_doron</dc:creator>
      <dc:date>2016-11-01T14:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reindex entire file when file is updated.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43752#M8172</link>
      <description>&lt;P&gt;No, You could have a look inside the configuration audit app on splunkbase and see how they made the input TA.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 22:16:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43752#M8172</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2016-11-01T22:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reindex entire file when file is updated.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43753#M8173</link>
      <description>&lt;P&gt;Have you tried crcSalt= in inputs.conf? Is that something you are looking for?&lt;/P&gt;

&lt;P&gt;Here is the link to Docs Search results (&lt;A href="http://docs.splunk.com/Special:SplunkSearch/docs?q=crcSalt"&gt;http://docs.splunk.com/Special:SplunkSearch/docs?q=crcSalt&lt;/A&gt;) that might give more info about it's use and limitations.&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 04:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-entire-file-when-file-is-updated/m-p/43753#M8173</guid>
      <dc:creator>miteshp250283</dc:creator>
      <dc:date>2016-11-02T04:45:37Z</dc:date>
    </item>
  </channel>
</rss>

