<?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: IIS WebSIte seperated logging - my config somehow grabs all website files as well. why? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20357#M2970</link>
    <description>&lt;P&gt;I do presume that &lt;CODE&gt;splunk list monitor&lt;/CODE&gt; lists everything thats being monitored...&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2010 16:02:11 GMT</pubDate>
    <dc:creator>Joffer</dc:creator>
    <dc:date>2010-07-27T16:02:11Z</dc:date>
    <item>
      <title>IIS WebSIte seperated logging - my config somehow grabs all website files as well. why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20353#M2966</link>
      <description>&lt;P&gt;I've got a Win 2008 Web server, and the layout on the disk is as follow:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\inetpub\sites\www.fqdn.com\logs\
C:\inetpub\sites\www.fqdn.com\www\
C:\inetpub\sites\another.fqdn.com\logs\
C:\inetpub\sites\another.fqdn.com\www\
etc..
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm trying to set up a file monitor for C:\inetpub\sites*\logs\ so that only the log files are monitored (and later I want to put on fschange monitoring on the www files (html/php/aspx etc)). I've configured this in search app inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\inetpub\sites\...\logs\]
sourcetype = iis
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Somehow this adds &lt;CODE&gt;C:\inetpub\sites\*\&lt;/CODE&gt; to the monitor list, making splunk monitor the www files as well.&lt;/P&gt;

&lt;P&gt;What have I missed in my config?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2010 18:29:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20353#M2966</guid>
      <dc:creator>Joffer</dc:creator>
      <dc:date>2010-07-26T18:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: IIS WebSIte seperated logging - my config somehow grabs all website files as well. why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20354#M2967</link>
      <description>&lt;P&gt;Creating a monitor for the directory &lt;CODE&gt;C:\inetpub\sites&lt;/CODE&gt; and filtering the files using a whitelist is probably the best option:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\inetpub\sites\]
sourcetype = iis
disabled = false
whitelist=\\logs\\
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Jul 2010 00:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20354#M2967</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-07-27T00:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: IIS WebSIte seperated logging - my config somehow grabs all website files as well. why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20355#M2968</link>
      <description>&lt;P&gt;I will try. Will it work in combination with fschange later when I want to add that to the \www\ folder for tracking changes to the html/php/aspx/js/etc files? Would it be as simple as creating a fschange and a 'whitelist=\www\' to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2010 14:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20355#M2968</guid>
      <dc:creator>Joffer</dc:creator>
      <dc:date>2010-07-27T14:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: IIS WebSIte seperated logging - my config somehow grabs all website files as well. why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20356#M2969</link>
      <description>&lt;P&gt;It did not work, still lists the \www\ files&amp;amp;folders as well. Do I need a blacklist as well then? Or should it only grab the \logs\ folder and nothing else?&lt;/P&gt;

&lt;P&gt;I'm using 4.1.4 btw.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2010 14:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20356#M2969</guid>
      <dc:creator>Joffer</dc:creator>
      <dc:date>2010-07-27T14:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: IIS WebSIte seperated logging - my config somehow grabs all website files as well. why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20357#M2970</link>
      <description>&lt;P&gt;I do presume that &lt;CODE&gt;splunk list monitor&lt;/CODE&gt; lists everything thats being monitored...&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2010 16:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20357#M2970</guid>
      <dc:creator>Joffer</dc:creator>
      <dc:date>2010-07-27T16:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: IIS WebSIte seperated logging - my config somehow grabs all website files as well. why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20358#M2971</link>
      <description>&lt;P&gt;I have subfolders under \logs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\inetpub\sites\www.fqdn.com\logs\
C:\inetpub\sites\www.fqdn.com\logs\W3SVC4\ (the log files are here - *.log)
C:\inetpub\sites\www.fqdn.com\logs\FTPSVC4\ (log files are here - *.log)
C:\inetpub\sites\www.fqdn.com\www\
C:\inetpub\sites\www.fqdn.com\www\xxx\
C:\inetpub\sites\www.fqdn.com\www\yyy\
C:\inetpub\sites\another.fqdn.com\logs\
C:\inetpub\sites\another.fqdn.com\logs\W3SVC7\
C:\inetpub\sites\another.fqdn.com\logs\FTPSVC7\
C:\inetpub\sites\another.fqdn.com\www\
C:\inetpub\sites\another.fqdn.com\www\ (webfiles files here)
C:\inetpub\sites\another.fqdn.com\www\aaa\ (more webfiles here)
C:\inetpub\sites\another.fqdn.com\www\bbb\ (more webfiles here)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I want, which I think you guys understand, is to monitor all log files under \logs\, no matter what the fqdn folder name is, and what folders are under \logs.&lt;/P&gt;

&lt;P&gt;I confirmed that if I monitor the &lt;CODE&gt;C:\inetpub\sites\lebara.stag.carrot.no\logs\W3SVC4\&lt;/CODE&gt; the logs are indexed (as it should), but I can't seem to get the correct config with wildcards etc...&lt;/P&gt;

&lt;P&gt;Update:&lt;/P&gt;

&lt;P&gt;If i add &lt;CODE&gt;whitelist=\\logs\\&lt;/CODE&gt; I get this output from &lt;CODE&gt;splunk list monitor&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; C:\inetpub\sites\
   C:\inetpub\sites\www.fqdn.com
   C:\inetpub\sites\www.fqdn.com\logs
   C:\inetpub\sites\www.fqdn.com\logs\ProfileWS
   C:\inetpub\sites\www.fqdn.com\logs\W3SVC3
   C:\inetpub\sites\www.fqdn.com\www
   C:\inetpub\sites\www.fqdn.com\www\App_Data
   C:\inetpub\sites\www.fqdn.com\www\aspnet_client
   etc... (for each website)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I add a '*' after the last backslash - &lt;CODE&gt;whitelist=\\logs\\*&lt;/CODE&gt; - I get the logfiles in the monitor list at least, but still &lt;CODE&gt;\www\&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; C:\inetpub\sites\
   C:\inetpub\sites\www.fqdn.com
   C:\inetpub\sites\www.fqdn.com\logs
   C:\inetpub\sites\www.fqdn.com\logs\ProfileWS
   C:\inetpub\sites\www.fqdn.com\logs\ProfileWS\ProfileWS.error.log
   C:\inetpub\sites\www.fqdn.com\logs\ProfileWS\ProfileWS.log
   C:\inetpub\sites\www.fqdn.com\logs\W3SVC3
   C:\inetpub\sites\www.fqdn.com\logs\W3SVC3\u_ex100725.log
   C:\inetpub\sites\www.fqdn.com\logs\W3SVC3\u_ex100726.log
   C:\inetpub\sites\www.fqdn.com\logs\W3SVC3\u_ex100727.log
   C:\inetpub\sites\www.fqdn.com\www
   C:\inetpub\sites\www.fqdn.com\www\App_Data
   C:\inetpub\sites\www.fqdn.com\www\aspnet_client
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm getting quite frustrated here &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; And regex is almost like greek to me.&lt;/P&gt;

&lt;P&gt;Update 2010-07-29:&lt;/P&gt;

&lt;P&gt;I'm now running with the &lt;CODE&gt;whitelist = \\logs\\&lt;/CODE&gt; config, but no logs gets sent to the splunk indexer. Checking splunkd.log I see this (and lots of the same kind):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;07-29-2010 16:07:59.495 INFO  TailingProcessor - No configurations match, will ignore path='C:\inetpub\sites\www.fqdn.com\www\bin\CIF.xml'.
07-29-2010 16:07:59.511 INFO  TailingProcessor - No configurations match, will ignore path='C:\inetpub\sites\another.fqdn.com\logs\W3SVC7\u_ex100729.log'.
07-29-2010 16:29:20.013 INFO  TailingProcessor - No configurations match, will ignore path='C:\inetpub\sites\www.fqdn.com\www\bin\CIF.xml'.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you all can see, it doesn't match the \logs\ folder and therefor the logs aren't sent to my indexer... Isn't this strange?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2010 16:25:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20358#M2971</guid>
      <dc:creator>Joffer</dc:creator>
      <dc:date>2010-07-27T16:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: IIS WebSIte seperated logging - my config somehow grabs all website files as well. why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20359#M2972</link>
      <description>&lt;P&gt;By testing this simple regex in RegexBuddy (&lt;A href="http://answers.splunk.com/questions/5092/regex-crash-course"&gt;http://answers.splunk.com/questions/5092/regex-crash-course&lt;/A&gt;) with the entire folder structure I have I see &lt;CODE&gt;whitelist=\\logs\\&lt;/CODE&gt; is correct (not that I doubted). My question is then, why does &lt;CODE&gt;splunk list monitor&lt;/CODE&gt; list all the other folders?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2010 14:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20359#M2972</guid>
      <dc:creator>Joffer</dc:creator>
      <dc:date>2010-07-29T14:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: IIS WebSIte seperated logging - my config somehow grabs all website files as well. why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20360#M2973</link>
      <description>&lt;P&gt;the whitelist doesn't work for my splunk lightforwarder. Even though the simple whitelist should be correct it is not forwarded.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2010 19:18:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20360#M2973</guid>
      <dc:creator>Joffer</dc:creator>
      <dc:date>2010-07-30T19:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: IIS WebSIte seperated logging - my config somehow grabs all website files as well. why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20361#M2974</link>
      <description>&lt;P&gt;Finally. This worked:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\inetpub\sites\]
sourcetype = iis
followTail = 1
whitelist = \\logs\\*
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note the last star in the whitelist (*)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2010 16:21:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-WebSIte-seperated-logging-my-config-somehow-grabs-all/m-p/20361#M2974</guid>
      <dc:creator>Joffer</dc:creator>
      <dc:date>2010-08-04T16:21:53Z</dc:date>
    </item>
  </channel>
</rss>

