<?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 How to set time interval on a universal forwarder to check a specific file in directory? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-time-interval-on-a-universal-forwarder-to-check-a/m-p/233325#M45519</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have one application at my company which logs only once a day. &lt;BR /&gt;
It hereby overwrites the file of the day before. &lt;BR /&gt;
How can I tell the universal forwarder to grab a specific file only once a day?&lt;BR /&gt;
I want to set an interval, there is no need for an exact point in time.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
pyro_wood&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2016 20:59:44 GMT</pubDate>
    <dc:creator>horsefez</dc:creator>
    <dc:date>2016-01-14T20:59:44Z</dc:date>
    <item>
      <title>How to set time interval on a universal forwarder to check a specific file in directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-time-interval-on-a-universal-forwarder-to-check-a/m-p/233325#M45519</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have one application at my company which logs only once a day. &lt;BR /&gt;
It hereby overwrites the file of the day before. &lt;BR /&gt;
How can I tell the universal forwarder to grab a specific file only once a day?&lt;BR /&gt;
I want to set an interval, there is no need for an exact point in time.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
pyro_wood&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 20:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-time-interval-on-a-universal-forwarder-to-check-a/m-p/233325#M45519</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2016-01-14T20:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set time interval on a universal forwarder to check a specific file in directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-time-interval-on-a-universal-forwarder-to-check-a/m-p/233326#M45520</link>
      <description>&lt;P&gt;Do you see any issue with regular options of monitoring OR batch?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 21:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-time-interval-on-a-universal-forwarder-to-check-a/m-p/233326#M45520</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-14T21:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to set time interval on a universal forwarder to check a specific file in directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-time-interval-on-a-universal-forwarder-to-check-a/m-p/233327#M45521</link>
      <description>&lt;P&gt;If you set the universal forwarder to &lt;STRONG&gt;monitor&lt;/STRONG&gt; the file, it will check it throughout the day. When the file changes completely, Splunk will index the entire new file at some point after the change.&lt;/P&gt;

&lt;P&gt;Note that Splunk checks the first 256 bytes of the file to check to see whether the file has been replaced or just appended. So if the first part of the file is always the same, Splunk may not realize that it really is a new file. You can fix this by setting the following in the inputs.conf stanza that is monitoring the file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;initCrcLength = 1024
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Although you may need to set it to something larger - it needs to be a number of bytes that will force Splunk to look beyond any common header.&lt;/P&gt;

&lt;P&gt;There are other settings that can force Splunk to always re-index the entire file when it changes (eg., crcSalt). You can find out more about this by reading about &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Admin/Inputsconf"&gt;inputs.conf in the Admin manual&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Although you can set up Splunk "to check at an interval" by using scripts, but that is kludgy compared to just setting a monitor input. As @somesoni2 suggests, this is the best practice. The monitor input is reliable and low overhead.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 22:03:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-time-interval-on-a-universal-forwarder-to-check-a/m-p/233327#M45521</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-01-14T22:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to set time interval on a universal forwarder to check a specific file in directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-time-interval-on-a-universal-forwarder-to-check-a/m-p/233328#M45522</link>
      <description>&lt;P&gt;Thank you for this helpful reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 09:25:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-time-interval-on-a-universal-forwarder-to-check-a/m-p/233328#M45522</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2016-01-15T09:25:09Z</dc:date>
    </item>
  </channel>
</rss>

