<?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 recursive directories , with only one line in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315508#M59031</link>
    <description>&lt;P&gt;Apparently the other document is wrong, and the parent directory is &lt;STRONG&gt;NOT&lt;/STRONG&gt; covered by the &lt;CODE&gt;/.../&lt;/CODE&gt; construct, so this is the correct answer.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Try this -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///net/dell425srv/dell425srv/apps/SPLUNK_BACK_UP_LIVE/MXTIMING_MEDIUM3.../*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The documentation states that &lt;CODE&gt;...&lt;/CODE&gt; indicates recursion through subdirectories, which implies that the slashes on either side of it are not required features of the &lt;CODE&gt;...&lt;/CODE&gt; itself. No examples of that usage are in the documentation, however.  &lt;/P&gt;

&lt;P&gt;If that doesn't work, then you can use the regular expression equivalent...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///net/dell425srv/dell425srv/apps/SPLUNK_BACK_UP_LIVE/MXTIMING_MEDIUM3.*/*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's not very splunky, but it's a valid regex and matches the "Regular Expression Equivalent for &lt;CODE&gt;...&lt;/CODE&gt;" given in the table here -&lt;BR /&gt;
 &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 16:49:44 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-04-07T16:49:44Z</dc:date>
    <item>
      <title>monitoring recursive directories , with only one line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315507#M59030</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I have a directory&lt;/P&gt;

&lt;P&gt;/net/dell425srv/dell425srv/apps/SPLUNK_BACK_UP_LIVE/MXTIMING_MEDIUM3&lt;/P&gt;

&lt;P&gt;However it looks like i have to add two lines into my forwarder to do monitor the original directory and all the sub-directories, is there one line that i can use?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///net/dell425srv/dell425srv/apps/SPLUNK_BACK_UP_LIVE/MXTIMING_MEDIUM3/*.log]
disabled = false
recursive = true
host = MXTIMING_LIVE_TEST2
index = mlc_live
whitelist = mxtiming_(?&amp;lt;ppp&amp;gt;\d*_[^_]*_\d*)\.log
crcSalt = &amp;lt;SOURCE&amp;gt;
sourcetype = MX_TIMING

[monitor:///net/dell425srv/dell425srv/apps/SPLUNK_BACK_UP_LIVE/MXTIMING_MEDIUM3/.../*.log]
disabled = false
recursive = true
host = MXTIMING_LIVE_TEST2
index = mlc_live
whitelist = mxtiming_(?&amp;lt;ppp&amp;gt;\d*_[^_]*_\d*)\.log
crcSalt = &amp;lt;SOURCE&amp;gt;
sourcetype = MX_TIMING
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315507#M59030</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2020-09-29T13:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring recursive directories , with only one line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315508#M59031</link>
      <description>&lt;P&gt;Apparently the other document is wrong, and the parent directory is &lt;STRONG&gt;NOT&lt;/STRONG&gt; covered by the &lt;CODE&gt;/.../&lt;/CODE&gt; construct, so this is the correct answer.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Try this -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///net/dell425srv/dell425srv/apps/SPLUNK_BACK_UP_LIVE/MXTIMING_MEDIUM3.../*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The documentation states that &lt;CODE&gt;...&lt;/CODE&gt; indicates recursion through subdirectories, which implies that the slashes on either side of it are not required features of the &lt;CODE&gt;...&lt;/CODE&gt; itself. No examples of that usage are in the documentation, however.  &lt;/P&gt;

&lt;P&gt;If that doesn't work, then you can use the regular expression equivalent...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///net/dell425srv/dell425srv/apps/SPLUNK_BACK_UP_LIVE/MXTIMING_MEDIUM3.*/*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's not very splunky, but it's a valid regex and matches the "Regular Expression Equivalent for &lt;CODE&gt;...&lt;/CODE&gt;" given in the table here -&lt;BR /&gt;
 &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 16:49:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315508#M59031</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-07T16:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring recursive directories , with only one line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315509#M59032</link>
      <description>&lt;P&gt;This should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [monitor:///net/dell425srv/dell425srv/apps/SPLUNK_BACK_UP_LIVE/MXTIMING_MEDIUM3]
 disabled = false
 recursive = true
 host = MXTIMING_LIVE_TEST2
 index = mlc_live
 whitelist = mxtiming_(?&amp;lt;ppp&amp;gt;\d*_[^_]*_\d*)\.log
 crcSalt = &amp;lt;SOURCE&amp;gt;
 sourcetype = MX_TIMING
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;BTW, recursive defaults to true, so you don't actually need to specify "recursive = true" in your config.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 23:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315509#M59032</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2017-04-07T23:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring recursive directories , with only one line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315510#M59033</link>
      <description>&lt;P&gt;Very curious.  &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Specifyinputpathswithwildcards&lt;/A&gt; specifically says that ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/foo/.../bar.log matches the files /foo/1/bar.log, /foo/2/bar.log, /foo/1/2/bar.log, etc., but does not match /foo/bar.log, or /foo/3/notbar.log
Because a single ellipse recurses through all folders and subfolders, /foo/.../bar.log matches the same as /foo/.../.../bar.log.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your doc is specifically regarding &lt;CODE&gt;wildcards and monitor:&lt;/CODE&gt;, so the more specific beats the more general.  Upvoting yours and putting a caveat on mine.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 00:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315510#M59033</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-08T00:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring recursive directories , with only one line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315511#M59034</link>
      <description>&lt;P&gt;When you reference a person, if you prefix with &lt;CODE&gt;@&lt;/CODE&gt; (as in &lt;CODE&gt;@woodcock&lt;/CODE&gt;), the system will notify the person that you mentioned him.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 18:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315511#M59034</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-08T18:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring recursive directories , with only one line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315512#M59035</link>
      <description>&lt;P&gt;in fact it does not work&lt;BR /&gt;
[monitor:///net/dell425srv/dell425srv/apps/SPLUNK_BACK_UP_LIVE/MXTIMING_MEDIUM3/.../&lt;EM&gt;.log]&lt;BR /&gt;
i had to use&lt;BR /&gt;
[monitor:///net/dell425srv/dell425srv/apps/SPLUNK_BACK_UP_LIVE/MXTIMING_MEDIUM3.../&lt;/EM&gt;.log]&lt;BR /&gt;
to get it to work correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:39:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315512#M59035</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2020-09-29T13:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring recursive directories , with only one line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315513#M59036</link>
      <description>&lt;P&gt;Cheers - this is what i needed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 14:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315513#M59036</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-04-13T14:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring recursive directories , with only one line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315514#M59037</link>
      <description>&lt;P&gt;@woodcock - thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 15:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-recursive-directories-with-only-one-line/m-p/315514#M59037</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-13T15:29:31Z</dc:date>
    </item>
  </channel>
</rss>

