<?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: How can we get the logs generated only in an indicated period? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-get-the-logs-generated-only-in-an-indicated-period/m-p/164977#M98129</link>
    <description>&lt;P&gt;we don't know exactly the name fo logs. The logs generate every day.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Dec 2014 04:14:41 GMT</pubDate>
    <dc:creator>xiyangyang</dc:creator>
    <dc:date>2014-12-25T04:14:41Z</dc:date>
    <item>
      <title>How can we get the logs generated only in an indicated period?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-get-the-logs-generated-only-in-an-indicated-period/m-p/164975#M98127</link>
      <description>&lt;P&gt;we need take the logs generated from 00:00 ~8:00 under one folder (for example: folder /a/).&lt;BR /&gt;
Under /a/, there are several log files. For example: a.log, b.log.&lt;BR /&gt;
a.log is generated from 00:00~8:00, but b.log is not.&lt;BR /&gt;
We set input.conf as follow and start the log acquasition from 0:00 and stop it at 8:00 everyday:&lt;BR /&gt;
　　　　　　[monitor:///a/*]&lt;BR /&gt;
　　　　　　disabled = false&lt;BR /&gt;
　　　　　　sourcetype = xxxxx&lt;BR /&gt;
　　　　　　index = ssss&lt;BR /&gt;
　　　　　　followTail = 1&lt;BR /&gt;
　　　　　　ignoreOlderThan = 1d&lt;BR /&gt;
Under this settings, we got both a.log and b.log. however, b.log is not the target, &lt;/P&gt;

&lt;P&gt;How can we get the log which generated in the correct period only?&lt;BR /&gt;
We cannot use white list or black list, because  there are a lot of logs.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Dec 2014 03:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-we-get-the-logs-generated-only-in-an-indicated-period/m-p/164975#M98127</guid>
      <dc:creator>xiyangyang</dc:creator>
      <dc:date>2014-12-25T03:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can we get the logs generated only in an indicated period?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-get-the-logs-generated-only-in-an-indicated-period/m-p/164976#M98128</link>
      <description>&lt;P&gt;If you know which logs these are, you can create an input for the specific files. That is probably the best way to accomplish this..&lt;/P&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///a/a.log]
sourcetype = alog
index = ssss
followTail = 1
ignoreOlderThan = 1d

[monitor:///a/b.log]
sourcetype = blog
index = ssss
followTail = 1
ignoreOlderThan = 1d

[monitor:///a/c.log]
sourcetype = clog
index = ssss
followTail = 1
ignoreOlderThan = 1d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also leave in the monitor glob for the whole directory, after these specific inputs...&lt;/P&gt;</description>
      <pubDate>Thu, 25 Dec 2014 03:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-we-get-the-logs-generated-only-in-an-indicated-period/m-p/164976#M98128</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2014-12-25T03:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can we get the logs generated only in an indicated period?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-get-the-logs-generated-only-in-an-indicated-period/m-p/164977#M98129</link>
      <description>&lt;P&gt;we don't know exactly the name fo logs. The logs generate every day.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Dec 2014 04:14:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-we-get-the-logs-generated-only-in-an-indicated-period/m-p/164977#M98129</guid>
      <dc:creator>xiyangyang</dc:creator>
      <dc:date>2014-12-25T04:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can we get the logs generated only in an indicated period?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-we-get-the-logs-generated-only-in-an-indicated-period/m-p/164978#M98130</link>
      <description>&lt;P&gt;If the names of the logs are truly random, and cant apply a whitelist / blacklist, then you really cant do much except the monitor the whole directory.&lt;/P&gt;

&lt;P&gt;Whitelisting the filenames would be the best method to approach this.&lt;/P&gt;

&lt;P&gt;If you are not looking at realtime monitoring of these files, then you might be better to work on a scripted solution that will move only the desired logs to a separate folder and have splunk monitor that directory.. That does require some scripting outside of Splunk though...&lt;/P&gt;

&lt;P&gt;Is this a custom app?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Dec 2014 04:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-we-get-the-logs-generated-only-in-an-indicated-period/m-p/164978#M98130</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2014-12-25T04:59:13Z</dc:date>
    </item>
  </channel>
</rss>

