<?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 Monitor files in a Windows Directory with wildcards in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-files-in-a-Windows-Directory-with-wildcards/m-p/485311#M83059</link>
    <description>&lt;P&gt;I am having a problem trying to monitor some files on some Windows servers.&lt;/P&gt;

&lt;P&gt;The directories that I am trying to pick up the files from are:&lt;BR /&gt;
&lt;STRONG&gt;D:\webroot\&lt;A href="http://www.foo1.foo.cd%5CApp_Data%5Clogs"&gt;www.foo1.foo.cd\App_Data\logs&lt;/A&gt;&lt;BR /&gt;
D:\webroot\&lt;A href="http://www.foo1.foo.cm%5CApp_Data%5Clogs"&gt;www.foo1.foo.cm\App_Data\logs&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;And the file name will be similar to this:&lt;BR /&gt;
&lt;STRONG&gt;Aggregation.log.20191103.224856.txt&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I am needing to use wildcards in the path because the portion which is &lt;STRONG&gt;&lt;A href="http://www.foo1.foo"&gt;www.foo1.foo&lt;/A&gt;.&lt;/STRONG&gt; changes based on which environment we are looking at and want to ensure as they bring up different environments the files are  just automatically consumed.&lt;/P&gt;

&lt;P&gt;I tried using an * in the path and it did not work.  this is the inputs section right now (which is still not working):&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Blockquote&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;[monitor://D:\webroot]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = SiteCore:cm&lt;BR /&gt;
whitelist = .+cm\App_Data\logs\Aggregation.+.txt$&lt;/P&gt;

&lt;P&gt;[monitor://D:\webroot]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = SiteCore:cd&lt;BR /&gt;
whitelist = .+cd\App_Data\logs\Aggregation.+.txt$&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Blockquote&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;any idea what I have wrong ?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2019 17:36:25 GMT</pubDate>
    <dc:creator>jeffbat</dc:creator>
    <dc:date>2019-11-14T17:36:25Z</dc:date>
    <item>
      <title>Monitor files in a Windows Directory with wildcards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-files-in-a-Windows-Directory-with-wildcards/m-p/485311#M83059</link>
      <description>&lt;P&gt;I am having a problem trying to monitor some files on some Windows servers.&lt;/P&gt;

&lt;P&gt;The directories that I am trying to pick up the files from are:&lt;BR /&gt;
&lt;STRONG&gt;D:\webroot\&lt;A href="http://www.foo1.foo.cd%5CApp_Data%5Clogs"&gt;www.foo1.foo.cd\App_Data\logs&lt;/A&gt;&lt;BR /&gt;
D:\webroot\&lt;A href="http://www.foo1.foo.cm%5CApp_Data%5Clogs"&gt;www.foo1.foo.cm\App_Data\logs&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;And the file name will be similar to this:&lt;BR /&gt;
&lt;STRONG&gt;Aggregation.log.20191103.224856.txt&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I am needing to use wildcards in the path because the portion which is &lt;STRONG&gt;&lt;A href="http://www.foo1.foo"&gt;www.foo1.foo&lt;/A&gt;.&lt;/STRONG&gt; changes based on which environment we are looking at and want to ensure as they bring up different environments the files are  just automatically consumed.&lt;/P&gt;

&lt;P&gt;I tried using an * in the path and it did not work.  this is the inputs section right now (which is still not working):&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Blockquote&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;[monitor://D:\webroot]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = SiteCore:cm&lt;BR /&gt;
whitelist = .+cm\App_Data\logs\Aggregation.+.txt$&lt;/P&gt;

&lt;P&gt;[monitor://D:\webroot]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = SiteCore:cd&lt;BR /&gt;
whitelist = .+cd\App_Data\logs\Aggregation.+.txt$&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Blockquote&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;any idea what I have wrong ?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 17:36:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-files-in-a-Windows-Directory-with-wildcards/m-p/485311#M83059</guid>
      <dc:creator>jeffbat</dc:creator>
      <dc:date>2019-11-14T17:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor files in a Windows Directory with wildcards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-files-in-a-Windows-Directory-with-wildcards/m-p/485312#M83060</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://D:\webroot\*.cm\App_Data\Aggregation.*.txt]
disabled = false
sourcetype = SiteCore:cm

[monitor://D:\webroot\*.cd\App_Data\Aggregation.*.txt]
disabled = false
sourcetype = SiteCore:cd
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 01:07:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-files-in-a-Windows-Directory-with-wildcards/m-p/485312#M83060</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-15T01:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor files in a Windows Directory with wildcards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-files-in-a-Windows-Directory-with-wildcards/m-p/485313#M83061</link>
      <description>&lt;P&gt;I tried that one (I actually thing that is the exact one that I originally used) but adding in the \logs part before Aggregation as you were slightly off with the directory name.&lt;/P&gt;

&lt;P&gt;No luck on the files getting picked up.&lt;/P&gt;

&lt;P&gt;Is there an issue with the fact that there is a wildcard in the path as well as a wildcard in the filename?&lt;/P&gt;

&lt;P&gt;These seem to be the only files I am not able to get picked up.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 16:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-files-in-a-Windows-Directory-with-wildcards/m-p/485313#M83061</guid>
      <dc:creator>jeffbat</dc:creator>
      <dc:date>2019-11-15T16:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor files in a Windows Directory with wildcards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-files-in-a-Windows-Directory-with-wildcards/m-p/485314#M83062</link>
      <description>&lt;P&gt;Hi  jeffbat,&lt;BR /&gt;
did you tried to check the path you used in monitor stanza using the dir command?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dir D:\webroot\*.cm\App_Data\logs\Aggregation.*.txt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;do you have the file to monitor list?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 07:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-files-in-a-Windows-Directory-with-wildcards/m-p/485314#M83062</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-16T07:23:37Z</dc:date>
    </item>
  </channel>
</rss>

