<?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 and create new event for file when modtime changes, regardless of content in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-and-create-new-event-for-file-when-modtime-changes/m-p/740864#M117769</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231562"&gt;@whar_garbl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think what you have done with "CHECK_METHOD" in props.conf should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::&amp;lt;yoursource&amp;gt;]
CHECK_METHOD = modtime&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, you may also need to set the crcSalt in inputs.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor://&amp;lt;path&amp;gt;]
crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are a few other useful links which might also help!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Ingesting-file-data/td-p/81645" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/Ingesting-file-data/td-p/81645&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Knowledge-Management/Modtime-is-newer-than-stored-will-reread-file-with-9-x-x/td-p/677930" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Knowledge-Management/Modtime-is-newer-than-stored-will-reread-file-with-9-x-x/td-p/677930&lt;/A&gt;&amp;nbsp;&amp;lt;&amp;lt; Beware of this possible bug&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2025 23:03:47 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-03-04T23:03:47Z</dc:date>
    <item>
      <title>Reindex and create new event for file when modtime changes, regardless of content</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-and-create-new-event-for-file-when-modtime-changes/m-p/740824#M117761</link>
      <description>&lt;P&gt;I have a file I'm monitoring that changes several times a day. It is likely that sometimes the file contents will be the same as a previous iteration, but not guaranteed (the file name name does not change). The file is in text format and is a few dozen lines long.&lt;/P&gt;&lt;P&gt;I want to process the file every time the modtime changes, even if the content is 100% the same, and I want to create a single event with the contents each time.&lt;/P&gt;&lt;P&gt;props.conf:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[my_sourcetype]&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;DATETIME_CONFIG = current&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;BREAK_ONLY_AFTER = nevereverbreak&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[source::/path/to/file-to-be-read]&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;CHECK_METHOD = modtime&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;sourcetype = my_sourcetype&lt;/P&gt;&lt;P&gt;inputs.conf:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[monitor:///path/to/file-to-be-read]&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;disabled = 0&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;sourcetype = my_sourcetype&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;crcSalt = some_random_value_to_try_to_make_it_always_read&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I update file-to-be-read manually by adding new lines to the end, it gets read in immediately and I get an event just like I want. But when the automated process creates the file (with an updated modtime), Splunk seems not to be interested in it. Perms are correct and splunkd.log reflects that the modtime is different and it's re-reading the file... but it doesn't create a new event.&lt;/P&gt;&lt;P&gt;I'm sure I'm missing something obvious, but I'd appreciate any advice. Cheers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 19:23:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-and-create-new-event-for-file-when-modtime-changes/m-p/740824#M117761</guid>
      <dc:creator>whar_garbl</dc:creator>
      <dc:date>2025-03-04T19:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reindex and create new event for file when modtime changes, regardless of content</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reindex-and-create-new-event-for-file-when-modtime-changes/m-p/740864#M117769</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231562"&gt;@whar_garbl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think what you have done with "CHECK_METHOD" in props.conf should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::&amp;lt;yoursource&amp;gt;]
CHECK_METHOD = modtime&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, you may also need to set the crcSalt in inputs.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor://&amp;lt;path&amp;gt;]
crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are a few other useful links which might also help!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Ingesting-file-data/td-p/81645" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/Ingesting-file-data/td-p/81645&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Knowledge-Management/Modtime-is-newer-than-stored-will-reread-file-with-9-x-x/td-p/677930" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Knowledge-Management/Modtime-is-newer-than-stored-will-reread-file-with-9-x-x/td-p/677930&lt;/A&gt;&amp;nbsp;&amp;lt;&amp;lt; Beware of this possible bug&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 23:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reindex-and-create-new-event-for-file-when-modtime-changes/m-p/740864#M117769</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-04T23:03:47Z</dc:date>
    </item>
  </channel>
</rss>

