<?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 a forwarder monitor a dynamic path? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412179#M72955</link>
    <description>&lt;P&gt;I would say &lt;CODE&gt;\\shared\test\...\logs\xxx*&lt;/CODE&gt; should work, unless there is some specific limitation in using that approach for such UNC network share paths.&lt;/P&gt;

&lt;P&gt;Have you tried mounting that share on your Splunk server and then pointing Splunk at the mountpoint, rather than using the share path in the inputs.conf?&lt;/P&gt;

&lt;P&gt;In general: have you tried monitoring a specific folder, just to determine whether the issue is with the wildcards, or with accessing the share in general?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 09:09:26 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2018-06-28T09:09:26Z</dc:date>
    <item>
      <title>How can a forwarder monitor a dynamic path?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412177#M72953</link>
      <description>&lt;P&gt;How can a forwarder be setup to monitor files with a dynamic path?&lt;/P&gt;

&lt;P&gt;For instance, I have a folder structure such as this:&lt;BR /&gt;
&lt;CODE&gt;\\shared\tests\{DateTime.NOW}\logs\xxx_yyy_{DateTime.NOW}.xml&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;DateTime.NOW&lt;/CODE&gt; represents the time which the xml file was generated. There will be multiple &lt;CODE&gt;{DateTime.NOW}&lt;/CODE&gt; folders in the &lt;CODE&gt;\\shared\test&lt;/CODE&gt; path.&lt;/P&gt;

&lt;P&gt;I have tried some of the solutions stated here: &lt;A href="https://answers.splunk.com/answers/33436/monitor-file-with-dynamic-directiory-name.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev"&gt;https://answers.splunk.com/answers/33436/monitor-file-with-dynamic-directiory-name.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;such as:&lt;BR /&gt;
&lt;CODE&gt;\\shared\test\\logs\xxx*&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;\\shared\test...logs\xxx*&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;\\shared\test\...\logs\xxx*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;but they did not work.&lt;/P&gt;

&lt;P&gt;Any help would be appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 09:00:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412177#M72953</guid>
      <dc:creator>mawomommoh</dc:creator>
      <dc:date>2018-06-28T09:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can a forwarder monitor a dynamic path?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412178#M72954</link>
      <description>&lt;P&gt;If you are really trying to monitor UNC shares I recommend reading this answer &lt;A href="https://answers.splunk.com/answers/218965/how-monitor-logs-on-a-unc-path.html"&gt;https://answers.splunk.com/answers/218965/how-monitor-logs-on-a-unc-path.html&lt;/A&gt; and regarding the wildcarding; this should work &lt;CODE&gt;\\shared\test\...\logs\xxx*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 09:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412178#M72954</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-06-28T09:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can a forwarder monitor a dynamic path?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412179#M72955</link>
      <description>&lt;P&gt;I would say &lt;CODE&gt;\\shared\test\...\logs\xxx*&lt;/CODE&gt; should work, unless there is some specific limitation in using that approach for such UNC network share paths.&lt;/P&gt;

&lt;P&gt;Have you tried mounting that share on your Splunk server and then pointing Splunk at the mountpoint, rather than using the share path in the inputs.conf?&lt;/P&gt;

&lt;P&gt;In general: have you tried monitoring a specific folder, just to determine whether the issue is with the wildcards, or with accessing the share in general?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 09:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412179#M72955</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-28T09:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can a forwarder monitor a dynamic path?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412180#M72956</link>
      <description>&lt;P&gt;This should definitely work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://\\shared\tests\*\logs\xxx_yyy_*.xml]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I suspect that your problem is in the stanza's definition portion, not the file portion.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jun 2018 15:33:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412180#M72956</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-06-30T15:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can a forwarder monitor a dynamic path?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412181#M72957</link>
      <description>&lt;P&gt;Thanks @MuS , I tried your suggestion and the forwarder was only able to detect one of the folders in the &lt;CODE&gt;...&lt;/CODE&gt; level of the path. It ignores all other folders. And despite detecting this folder only one xml file is forwarded to Splunk.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jul 2018 06:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412181#M72957</guid>
      <dc:creator>mawomommoh</dc:creator>
      <dc:date>2018-07-01T06:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can a forwarder monitor a dynamic path?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412182#M72958</link>
      <description>&lt;P&gt;Thanks @FrankVI , I have tried monitoring files on the share and it works fine, but like I stated for @MuS 's suggestion  above folders get ignored at the &lt;CODE&gt;...&lt;/CODE&gt; level of the path.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jul 2018 06:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412182#M72958</guid>
      <dc:creator>mawomommoh</dc:creator>
      <dc:date>2018-07-01T06:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can a forwarder monitor a dynamic path?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412183#M72959</link>
      <description>&lt;P&gt;Thanks @woodcock! This works perfectly. I had to restart the forwarder before it worked.&lt;/P&gt;

&lt;P&gt;Much appreciated!&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jul 2018 06:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412183#M72959</guid>
      <dc:creator>mawomommoh</dc:creator>
      <dc:date>2018-07-01T06:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can a forwarder monitor a dynamic path?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412184#M72960</link>
      <description>&lt;P&gt;You might want to file a bug report on that then, because theoretically &lt;CODE&gt;...&lt;/CODE&gt; should work just as good as &lt;CODE&gt;*&lt;/CODE&gt; in this case.&lt;/P&gt;

&lt;P&gt;Out of curiosity: how long did you give the forwarder time to start reading all the files and folders after making changes to the inputs.conf? I know Splunk can be rather slow at traversing such shared folders and can really take quite some time before discovering all files and starting to read from them.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jul 2018 08:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412184#M72960</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-07-01T08:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can a forwarder monitor a dynamic path?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412185#M72961</link>
      <description>&lt;P&gt;I see. Thanks for the insight.&lt;/P&gt;

&lt;P&gt;I made the changes and restarted the forwarder, and then waited for 6-8 minutes. Maybe I needed to wait longer.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 07:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-a-forwarder-monitor-a-dynamic-path/m-p/412185#M72961</guid>
      <dc:creator>mawomommoh</dc:creator>
      <dc:date>2018-07-04T07:34:02Z</dc:date>
    </item>
  </channel>
</rss>

