<?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: Add monitor for filename with wildcard in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Add-monitor-for-filename-with-wildcard/m-p/104174#M21923</link>
    <description>&lt;P&gt;You can use the following syntax in your inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor::...myfile.log...]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is information from the manual:&lt;/P&gt;

&lt;P&gt;Note concerning wildcards and monitor:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;You can use wildcards to specify your input path for monitored input. Use "..." for recursive directory 
matching and "*" for wildcard matching in a single directory segment.&lt;/LI&gt;
&lt;LI&gt;"..." recurses through directories. This means that /foo/.../bar will match foo/bar, foo/1/bar, 
foo/1/2/bar, etc. &lt;/LI&gt;
&lt;LI&gt;You can use multiple "..." specifications in a single input path. For example: /foo/.../bar/...&lt;/LI&gt;
&lt;LI&gt;The asterisk (&lt;EM&gt;) matches anything in a single path segment; unlike "...", it does not recurse.  For example, 
/foo/&lt;/EM&gt;/bar matches the files /foo/bar, /foo/1/bar, /foo/2/bar, etc. However, it does not match /foo/1/2/bar . 
A second example: /foo/m*r/bar matches /foo/bar, /foo/mr/bar,   /foo/mir/bar, /foo/moor/bar, etc. &lt;/LI&gt;
&lt;LI&gt;You can combine "&lt;EM&gt;" and "..." as required: foo/.../bar/&lt;/EM&gt; matches any file in the bar directory within the 
specified path.&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Fri, 04 Nov 2011 15:58:52 GMT</pubDate>
    <dc:creator>tgow</dc:creator>
    <dc:date>2011-11-04T15:58:52Z</dc:date>
    <item>
      <title>Add monitor for filename with wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-monitor-for-filename-with-wildcard/m-p/104173#M21922</link>
      <description>&lt;P&gt;I wanted to add a monitor for a file using an wildcard as part of the name as the file name will change daily.  I added the following monitor:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;file name = myfile.log-2011-11-04
splunk add monitor myfile.log-*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This resulted in a monitored log file for myfile.log-2011-11-04 which is fine for the current file but I want the next file myfile.log-2011-11-05 to be automatically monitored as well.&lt;/P&gt;

&lt;P&gt;Will this be the case?  I didn't see any examples in the documentation for adding a wildcard for a file, only directory paths.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 15:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-monitor-for-filename-with-wildcard/m-p/104173#M21922</guid>
      <dc:creator>thematthewgreen</dc:creator>
      <dc:date>2011-11-04T15:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add monitor for filename with wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-monitor-for-filename-with-wildcard/m-p/104174#M21923</link>
      <description>&lt;P&gt;You can use the following syntax in your inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor::...myfile.log...]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is information from the manual:&lt;/P&gt;

&lt;P&gt;Note concerning wildcards and monitor:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;You can use wildcards to specify your input path for monitored input. Use "..." for recursive directory 
matching and "*" for wildcard matching in a single directory segment.&lt;/LI&gt;
&lt;LI&gt;"..." recurses through directories. This means that /foo/.../bar will match foo/bar, foo/1/bar, 
foo/1/2/bar, etc. &lt;/LI&gt;
&lt;LI&gt;You can use multiple "..." specifications in a single input path. For example: /foo/.../bar/...&lt;/LI&gt;
&lt;LI&gt;The asterisk (&lt;EM&gt;) matches anything in a single path segment; unlike "...", it does not recurse.  For example, 
/foo/&lt;/EM&gt;/bar matches the files /foo/bar, /foo/1/bar, /foo/2/bar, etc. However, it does not match /foo/1/2/bar . 
A second example: /foo/m*r/bar matches /foo/bar, /foo/mr/bar,   /foo/mir/bar, /foo/moor/bar, etc. &lt;/LI&gt;
&lt;LI&gt;You can combine "&lt;EM&gt;" and "..." as required: foo/.../bar/&lt;/EM&gt; matches any file in the bar directory within the 
specified path.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 04 Nov 2011 15:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-monitor-for-filename-with-wildcard/m-p/104174#M21923</guid>
      <dc:creator>tgow</dc:creator>
      <dc:date>2011-11-04T15:58:52Z</dc:date>
    </item>
  </channel>
</rss>

