<?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 To monitor data for specific months. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334359#M61825</link>
    <description>&lt;P&gt;Combining the comments above:&lt;BR /&gt;
you can use wildcard in your monitor stanza, for example:&lt;BR /&gt;
&lt;CODE&gt;[monitor:////test/01-1*-2016/test.log]&lt;/CODE&gt; will monitor the directories of October November and December 2016&lt;BR /&gt;
here is a link to docs: &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards#Input_examples"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards#Input_examples&lt;/A&gt;&lt;BR /&gt;
if you have logs from March and April 17 you will probably need 3 stanzas although you can always set one general and then balcklist or send to null queue the data you dont need.&lt;BR /&gt;
blacklist explained here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Whitelistorblacklistspecificincomingdata"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Whitelistorblacklistspecificincomingdata&lt;/A&gt;&lt;BR /&gt;
route and filter data explained here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;BR /&gt;
in this case will just do simple 3 stanzas:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:////test/01-1*-2016/test.log]
index=test
sourcetype = yourSourcetype
[monitor:////test/01-01-2017/test.log]
index=test
sourcetype = yourSourcetype
[monitor:////test/01-02-2017/test.log]
index=test
sourcetype = yourSourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Apr 2017 13:31:44 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2017-04-19T13:31:44Z</dc:date>
    <item>
      <title>How To monitor data for specific months.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334354#M61820</link>
      <description>&lt;P&gt;I've logs files in the location which has dates like:&lt;BR /&gt;
/test/01-10-2016/test.log &lt;BR /&gt;
/test/01-11-2016/test.log&lt;/P&gt;

&lt;P&gt;I have to monitor files from October to Feb . Can I write single monitor statement rather than writing separately for all 5 months.&lt;/P&gt;

&lt;P&gt;[monitor:////test/01-10-2016/test.log]&lt;BR /&gt;
index=test&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 11:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334354#M61820</guid>
      <dc:creator>isha_rastogi</dc:creator>
      <dc:date>2017-04-19T11:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How To monitor data for specific months.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334355#M61821</link>
      <description>&lt;P&gt;you can use wildcard in your monitor stanza, for example:&lt;BR /&gt;
&lt;CODE&gt;[monitor:////test/01-1*-2016/test.log]&lt;/CODE&gt; will monitor the directories of October  November and December 2016&lt;BR /&gt;
here is a link to docs: &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards#Input_examples"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards#Input_examples&lt;/A&gt;&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:44:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334355#M61821</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-04-19T12:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: How To monitor data for specific months.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334356#M61822</link>
      <description>&lt;P&gt;Can I do it in one monitor statement? &lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:57:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334356#M61822</guid>
      <dc:creator>isha_rastogi</dc:creator>
      <dc:date>2017-04-19T12:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: How To monitor data for specific months.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334357#M61823</link>
      <description>&lt;P&gt;if you have logs from March and April 17 you will probably need 3 although you can always set one general and then balcklist or send to null queue the data you dont need.&lt;BR /&gt;
blacklist explained here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Whitelistorblacklistspecificincomingdata"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Whitelistorblacklistspecificincomingdata&lt;/A&gt;&lt;BR /&gt;
route and filter data explained here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;BR /&gt;
in this case will just do simple 3 stanzas:&lt;BR /&gt;
[monitor:////test/01-1*-2016/test.log]&lt;BR /&gt;
index=test&lt;BR /&gt;
sourcetype = yourSourcetype&lt;BR /&gt;
[monitor:////test/01-01-2017/test.log]&lt;BR /&gt;
index=test&lt;BR /&gt;
sourcetype = yourSourcetype&lt;BR /&gt;
[monitor:////test/01-02-2017/test.log]&lt;BR /&gt;
index=test&lt;BR /&gt;
sourcetype = yourSourcetype&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334357#M61823</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-04-19T13:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How To monitor data for specific months.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334358#M61824</link>
      <description>&lt;P&gt;Ok. Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:19:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334358#M61824</guid>
      <dc:creator>isha_rastogi</dc:creator>
      <dc:date>2017-04-19T13:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: How To monitor data for specific months.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334359#M61825</link>
      <description>&lt;P&gt;Combining the comments above:&lt;BR /&gt;
you can use wildcard in your monitor stanza, for example:&lt;BR /&gt;
&lt;CODE&gt;[monitor:////test/01-1*-2016/test.log]&lt;/CODE&gt; will monitor the directories of October November and December 2016&lt;BR /&gt;
here is a link to docs: &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards#Input_examples"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards#Input_examples&lt;/A&gt;&lt;BR /&gt;
if you have logs from March and April 17 you will probably need 3 stanzas although you can always set one general and then balcklist or send to null queue the data you dont need.&lt;BR /&gt;
blacklist explained here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Whitelistorblacklistspecificincomingdata"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Whitelistorblacklistspecificincomingdata&lt;/A&gt;&lt;BR /&gt;
route and filter data explained here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;BR /&gt;
in this case will just do simple 3 stanzas:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:////test/01-1*-2016/test.log]
index=test
sourcetype = yourSourcetype
[monitor:////test/01-01-2017/test.log]
index=test
sourcetype = yourSourcetype
[monitor:////test/01-02-2017/test.log]
index=test
sourcetype = yourSourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-To-monitor-data-for-specific-months/m-p/334359#M61825</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-04-19T13:31:44Z</dc:date>
    </item>
  </channel>
</rss>

