<?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: fully reindexing a file every time the datestamp changes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376696#M68166</link>
    <description>&lt;P&gt;Could you also post first few lines from the file?&lt;BR /&gt;
Also, The props.conf with &lt;CODE&gt;[source:...&lt;/CODE&gt;, did you place it in the forwarder (same host as where your inputs.conf lives)?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2019 15:08:14 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-03-29T15:08:14Z</dc:date>
    <item>
      <title>fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376695#M68165</link>
      <description>&lt;P&gt;I've a few different automated pulls of data into directories of files I want splunk to index.  These files get completely overwritten every night at least, but sometimes more often than that depending on different operational conditions out of my control.  I need splunk to reindex these files every time the datestamp changes and that doesn't appear to be working.  current props configurations:&lt;/P&gt;

&lt;P&gt;[source:: /data/ridiculi/all_group/ridiculi.*]&lt;BR /&gt;
CHECK_METHOD = modtime&lt;/P&gt;

&lt;P&gt;[ridiculi:group]&lt;BR /&gt;
DATETIME_CONFIG = CURRENT&lt;BR /&gt;
FIELD_DELIMITER = ":"&lt;BR /&gt;
FIELD_NAMES = gid,status,gidnumber,members&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
category = Operating System&lt;BR /&gt;
description = Ridiculi&lt;BR /&gt;
disabled = false&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;P&gt;[monitor:///data/ridiculi/all_group/ridiculi.wanker]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = ridiculi:group&lt;BR /&gt;
index=ridiculi&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376695#M68165</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2020-09-29T23:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376696#M68166</link>
      <description>&lt;P&gt;Could you also post first few lines from the file?&lt;BR /&gt;
Also, The props.conf with &lt;CODE&gt;[source:...&lt;/CODE&gt;, did you place it in the forwarder (same host as where your inputs.conf lives)?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 15:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376696#M68166</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-03-29T15:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376697#M68167</link>
      <description>&lt;P&gt;where is your &lt;CODE&gt;props.conf&lt;/CODE&gt;? iirc the top portion has to be on the forwarder:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source:: /data/ridiculi/all_group/ridiculi.*]
CHECK_METHOD = modtime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the rest will be on the indexer &lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 15:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376697#M68167</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-03-29T15:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376698#M68168</link>
      <description>&lt;P&gt;Are you running Universal Forwarder to read &lt;CODE&gt;/data/ridiculi/all_group/ridiculi.wanker&lt;/CODE&gt; file ? If yes then below props.conf will not work on Universal Forwarder.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ridiculi:group]
DATETIME_CONFIG = CURRENT
FIELD_DELIMITER = ":"
FIELD_NAMES = gid,status,gidnumber,members
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
category = Operating System
description = Ridiculi
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You need to configure above props.conf configuration on first Splunk Enterprise instance from Universal Forwarder because parsing happens on full splunk instance not on UF.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 15:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376698#M68168</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-29T15:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376699#M68169</link>
      <description>&lt;P&gt;I'm actually running this on the splunk distributed search head in an app context. The props.conf should be ina distribution bundle that goes to the indexers.  The splunk distributed search head does output to an output queue of indexers.  Is there something else missing from that config that I need?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 15:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376699#M68169</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2019-03-29T15:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376700#M68170</link>
      <description>&lt;P&gt;On which instance you are monitoring &lt;CODE&gt;/data/ridiculi/all_group/ridiculi.wanker&lt;/CODE&gt; logfile ? Search Head or Universal Forwarder ?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 15:57:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376700#M68170</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-29T15:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376701#M68171</link>
      <description>&lt;P&gt;sure.  &lt;/P&gt;

&lt;P&gt;I'm actually running this on the splunk distributed search head in an app context. The props.conf should be ina distribution bundle that goes to the indexers. The splunk distributed search head does output to an output queue of indexers. Is there something else missing from that config that I need?&lt;/P&gt;

&lt;P&gt;First few lines from a file:&lt;BR /&gt;
Admins:NISG:123123:jim,bob,joe&lt;BR /&gt;
Users:NISG:456456:alpha,whiskey,tango&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 15:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376701#M68171</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2019-03-29T15:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376702#M68172</link>
      <description>&lt;P&gt;Its in etc/apps/ridiculi/local/props.conf and inputs.conf respectively on the distributed search head.  the /data path is an autofs mount point that the splunk search head can read (other files are being indexed over /data both from this search head and from indexers as required.)&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 16:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376702#M68172</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2019-03-29T16:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376703#M68173</link>
      <description>&lt;P&gt;Permissions on all files are 644.  permissions on directory are 2644.  Filesystem is NFSv3.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 16:07:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376703#M68173</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2019-03-29T16:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376704#M68174</link>
      <description>&lt;P&gt;Just a bump on this to see if there were any more ideas? About to open a case with Splunk support -- as it seems whats here should be sufficient.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 12:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376704#M68174</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2019-04-02T12:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376705#M68175</link>
      <description>&lt;P&gt;Just a bump on this to see if there were any more ideas? About to open a case with Splunk support -- as it seems whats here should be sufficient.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 12:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376705#M68175</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2019-04-02T12:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376706#M68176</link>
      <description>&lt;P&gt;the answer is between the lines ... where is your &lt;CODE&gt;props.conf&lt;/CODE&gt; that has the:&lt;BR /&gt;
    [source:: /data/ridiculi/all_group/ridiculi.*]&lt;BR /&gt;
    CHECK_METHOD = modtime&lt;BR /&gt;
it supposed to be on the instance that collects the data&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:00:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376706#M68176</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2020-09-30T00:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376707#M68177</link>
      <description>&lt;P&gt;In my situation that is true.  the /data directory is monitored by the splunk search head and the props.conf is also on the splunk search head.  There is no forwarder involved in this particular data input.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 12:51:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376707#M68177</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2019-04-02T12:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376708#M68178</link>
      <description>&lt;P&gt;This is a log file rotation setup where you need to use the crcSalt bit configuration and/or the initCrcLength attribute:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.5/Data/Howlogfilerotationishandled" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.5/Data/Howlogfilerotationishandled&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The winning combination was CHECK_METHOD combined with setting crcSalt to something like REINDEX_ALWAYS.  Because the file has similar or almost the same data, more than likely the CRC Checksum value and size is the same and Splunk will skip the log file even if the time and date of the file has changed.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376708#M68178</guid>
      <dc:creator>pdaigle_splunk</dc:creator>
      <dc:date>2020-09-29T23:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376709#M68179</link>
      <description>&lt;P&gt;Thank you for posting this Paul!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 19:19:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376709#M68179</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2019-04-04T19:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: fully reindexing a file every time the datestamp changes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376710#M68180</link>
      <description>&lt;P&gt;You're welcome!  Just sharing in case others in the community run across the same issue.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 19:21:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fully-reindexing-a-file-every-time-the-datestamp-changes/m-p/376710#M68180</guid>
      <dc:creator>pdaigle_splunk</dc:creator>
      <dc:date>2019-04-04T19:21:59Z</dc:date>
    </item>
  </channel>
</rss>

