<?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: Monitoring files during specific hours in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-files-during-specific-hours/m-p/22291#M3389</link>
    <description>&lt;P&gt;There's nothing built into Splunk to accommodate this as far as I know. &lt;/P&gt;

&lt;P&gt;You could hack something together that would enable/disable an input via a script, but as soon as you re-enable the input, it would just index all of the data from the time you don't care about.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2013 17:09:34 GMT</pubDate>
    <dc:creator>mloven_splunk</dc:creator>
    <dc:date>2013-08-01T17:09:34Z</dc:date>
    <item>
      <title>Monitoring files during specific hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-files-during-specific-hours/m-p/22290#M3388</link>
      <description>&lt;P&gt;Is it possible to only forward certain files during a specific time period?&lt;/P&gt;

&lt;P&gt;For instance, I only want the forwarder to monitor file XYZ between 9 AM to 5 PM.&lt;/P&gt;

&lt;P&gt;I don't want to approach this from a search standpoint.  I want the forwarder to basically exclude the file from 5 PM to 9 AM.  Not touch it at all.&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2013 16:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-files-during-specific-hours/m-p/22290#M3388</guid>
      <dc:creator>peter_gianusso</dc:creator>
      <dc:date>2013-08-01T16:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring files during specific hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-files-during-specific-hours/m-p/22291#M3389</link>
      <description>&lt;P&gt;There's nothing built into Splunk to accommodate this as far as I know. &lt;/P&gt;

&lt;P&gt;You could hack something together that would enable/disable an input via a script, but as soon as you re-enable the input, it would just index all of the data from the time you don't care about.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2013 17:09:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-files-during-specific-hours/m-p/22291#M3389</guid>
      <dc:creator>mloven_splunk</dc:creator>
      <dc:date>2013-08-01T17:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring files during specific hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-files-during-specific-hours/m-p/22292#M3390</link>
      <description>&lt;P&gt;cron job to activate / deactivate the input ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2013 07:02:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-files-during-specific-hours/m-p/22292#M3390</guid>
      <dc:creator>lmyrefelt</dc:creator>
      <dc:date>2013-08-02T07:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring files during specific hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-files-during-specific-hours/m-p/22293#M3391</link>
      <description>&lt;P&gt;At a high level, yes you can.&lt;/P&gt;

&lt;P&gt;Essentially you would need to create a script that ran on a schedule to hit the REST endpoint to disable or activate an input for the files in question. For those inputs you need to add the line;&lt;BR /&gt;
&lt;CODE&gt;followTail = true&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;
This will make Splunk only read from where the file currently is and not consume any older data, once disabled it will stop reading the data in.&lt;BR /&gt;
Alternatively you could have a script running that reads the original log and writes it to a second location, this could then be easily configured to only output to the second file during the times you specify.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2013 08:22:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-files-during-specific-hours/m-p/22293#M3391</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2013-08-02T08:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring files during specific hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-files-during-specific-hours/m-p/22294#M3392</link>
      <description>&lt;P&gt;I was going to suggest using followTail, but the docs state that: &lt;BR /&gt;
"* DO NOT leave followTail enabled in an ongoing fashion."&lt;/P&gt;

&lt;P&gt;I wasn't sure how much of a negative effect it would have to leave it enabled for 8 hours a day.&lt;/P&gt;

&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2013 13:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-files-during-specific-hours/m-p/22294#M3392</guid>
      <dc:creator>mloven_splunk</dc:creator>
      <dc:date>2013-08-02T13:37:59Z</dc:date>
    </item>
  </channel>
</rss>

