<?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 do I monitor input on Windows machine with a wild card character? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-monitor-input-on-Windows-machine-with-a-wild-card/m-p/402869#M71612</link>
    <description>&lt;P&gt;can you try this: (made D capital)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://D:\Program Files\Apache Software Foundation\*\webapps\config\audit.log]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 28 Sep 2018 16:24:53 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-09-28T16:24:53Z</dc:date>
    <item>
      <title>How do I monitor input on Windows machine with a wild card character?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-monitor-input-on-Windows-machine-with-a-wild-card/m-p/402868#M71611</link>
      <description>&lt;P&gt;I want to monitor a log file from the below location on a Windows server.&lt;/P&gt;

&lt;P&gt;D:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\config\&lt;/P&gt;

&lt;P&gt;However, based on the version of tomcat, the folder name changes. It could be Tomcat 6.0 or Tomcat 7.5 — etc. — on some servers. So, I tried with a different input stanza on the Universal Forwarder in the inputs.conf file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://d:\Program Files\Apache Software Foundation\Tomcat*\webapps\config\audit.log]
[monitor://d:\Program Files\Apache Software Foundation\\*\webapps\config\audit.log]
[monitor://d:\Program Files\Apache Software Foundation\\...\webapps\config\audit.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;None of the above options work and in the Splunkd.log file, I can see the below entry&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09-28-2018 13:44:24.422 +0000 INFO  TailingProcessor - Adding watch on path: d:\Program Files\Apache Software Foundation.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which means it is not recognizing folder structure mentioned in input stanza.&lt;/P&gt;

&lt;P&gt;Please suggest a solution.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 13:56:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-monitor-input-on-Windows-machine-with-a-wild-card/m-p/402868#M71611</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2018-09-28T13:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I monitor input on Windows machine with a wild card character?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-monitor-input-on-Windows-machine-with-a-wild-card/m-p/402869#M71612</link>
      <description>&lt;P&gt;can you try this: (made D capital)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://D:\Program Files\Apache Software Foundation\*\webapps\config\audit.log]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Sep 2018 16:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-monitor-input-on-Windows-machine-with-a-wild-card/m-p/402869#M71612</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-09-28T16:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I monitor input on Windows machine with a wild card character?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-monitor-input-on-Windows-machine-with-a-wild-card/m-p/402870#M71613</link>
      <description>&lt;P&gt;We do that very same thing for Tomcat logs since the server team cannot make up their mind where Apache should live. &lt;/P&gt;

&lt;H1&gt;Java and GC Logs&lt;/H1&gt;

&lt;P&gt;[monitor:///opt/apache-tomcat/*/GC.log]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
index=application&lt;BR /&gt;
sourcetype = prod:sun_jvm&lt;BR /&gt;
ignoreOlderThan = 30d&lt;/P&gt;

&lt;P&gt;[monitor:///opt/prpc/prpclogs/*/GC.log]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
index=application&lt;BR /&gt;
sourcetype = prod:sun_jvm&lt;BR /&gt;
ignoreOlderThan = 30d&lt;/P&gt;

&lt;P&gt;[monitor:///opt/prpc/pegalogs/*/GC.log]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
index=application&lt;BR /&gt;
sourcetype = prod:sun_jvm&lt;BR /&gt;
ignoreOlderThan = 30d&lt;/P&gt;

&lt;P&gt;[monitor:///opt/prpc/logs/*/GC.log]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
index=application&lt;BR /&gt;
sourcetype = prod:sun_jvm&lt;BR /&gt;
ignoreOlderThan = 30d&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 17:56:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-monitor-input-on-Windows-machine-with-a-wild-card/m-p/402870#M71613</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2018-09-28T17:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I monitor input on Windows machine with a wild card character?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-monitor-input-on-Windows-machine-with-a-wild-card/m-p/402871#M71614</link>
      <description>&lt;P&gt;Thanks for you inputs. However, in my case the UF is running on Windows OS and your stanza seems to be for Unix based system. I tried multiple options on windows but nothing is working. &lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 03:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-monitor-input-on-Windows-machine-with-a-wild-card/m-p/402871#M71614</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2018-09-29T03:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I monitor input on Windows machine with a wild card character?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-monitor-input-on-Windows-machine-with-a-wild-card/m-p/402872#M71615</link>
      <description>&lt;P&gt;Tried the same with D in caps but no success. Splunkd log still shows below&lt;/P&gt;

&lt;P&gt;Adding watch on path: D:\Program Files\Apache Software Foundation&lt;/P&gt;

&lt;P&gt;It seems that it is not recognizing rest of the path in monitor stanza.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 03:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-monitor-input-on-Windows-machine-with-a-wild-card/m-p/402872#M71615</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2018-09-29T03:50:42Z</dc:date>
    </item>
  </channel>
</rss>

