<?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: Wildcards in paths of inputs.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-paths-of-inputs-conf/m-p/34123#M6158</link>
    <description>&lt;P&gt;Replying to myself, in case someone has an interest in the answer:&lt;/P&gt;

&lt;P&gt;The problem with &lt;CODE&gt;splunk list monitor&lt;/CODE&gt; was encountered in a Universal Forwarder version 4.2.3.&lt;/P&gt;

&lt;P&gt;This seems to have been fixed in 4.3.1 (or in between). I found this out by first comparing the output of a 4.2.3 and 4.3.1 Universal forwarder, then confirmed by upgrading the 4.2.3 SUF to 4.3.1.&lt;/P&gt;

&lt;P&gt;In other word, &lt;CODE&gt;splunk list monitor&lt;/CODE&gt; will only list the logs matching the &lt;CODE&gt;monitor&lt;/CODE&gt;-stanza.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2012 11:59:32 GMT</pubDate>
    <dc:creator>echalex</dc:creator>
    <dc:date>2012-08-20T11:59:32Z</dc:date>
    <item>
      <title>Wildcards in paths of inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-paths-of-inputs-conf/m-p/34120#M6155</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I must confess I'm still not understanding how wildcards work in inputs.conf. I've got a clustered application, with five instances on one server. The instances are named live-1,live-2,live-3,staging-1,staging-2. They're all located in /opt/INSTANCE_NAME&lt;/P&gt;

&lt;P&gt;I'm trying to monitor all the live instances&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/foo/live-*/logs/]
index = foo_live
sourcetype = log4j
crcSalt = &amp;lt;SOURCE&amp;gt;
blacklist= (\.(gz|bz2|z|zip)$)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem with this stanza is that &lt;EM&gt;everything&lt;/EM&gt; under /opt/foo will be listed by 'splunk list monitor'. More than 16000 files... Including everything in /opt/foo/staging-[12] and /opt/foo/whatever. I don't understand how that's possible, since none of those paths include the "live-" part, but anyway...&lt;/P&gt;

&lt;P&gt;Problem number 2 is that nothing will actually be forwarded to the indexer by this.&lt;/P&gt;

&lt;P&gt;The documentation seems pretty straigh-forward on this, so I really don't understand why it isn't working. If I list every directory as individual stanzas, the forwarding will work as expected. However, I would really need a generic solution to match all future environments as well. (Several applications, several instances.)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 12:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-paths-of-inputs-conf/m-p/34120#M6155</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-04-24T12:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in paths of inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-paths-of-inputs-conf/m-p/34121#M6156</link>
      <description>&lt;P&gt;Are all of the logs named the same for each instance in their own directory? Maybe you can try this if that is so: &lt;/P&gt;

&lt;P&gt;[monitor:///opt/foo/*]&lt;BR /&gt;&lt;BR /&gt;
index = (?:live-[1-5]{1}/logs/foo_live.log)$&lt;BR /&gt;
sourcetype = log4j&lt;BR /&gt;&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;&lt;BR /&gt;&lt;BR /&gt;
blacklist= (.(gz|bz2|z|zip)$)  &lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;I've never put a RegEx expression in the monitor stanza and not certain that would work.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 17:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-paths-of-inputs-conf/m-p/34121#M6156</guid>
      <dc:creator>rgcurry</dc:creator>
      <dc:date>2012-04-24T17:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in paths of inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-paths-of-inputs-conf/m-p/34122#M6157</link>
      <description>&lt;P&gt;rgcurry,&lt;BR /&gt;
Yes, to a degree. The application is running under Tomcat, so there are files named catalina.out and files with the date pattern foo.yyyy-mm-dd.log.&lt;/P&gt;

&lt;P&gt;Not sure what you're trying to do with the regex in index, though... (?)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 07:00:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-paths-of-inputs-conf/m-p/34122#M6157</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-04-25T07:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in paths of inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-paths-of-inputs-conf/m-p/34123#M6158</link>
      <description>&lt;P&gt;Replying to myself, in case someone has an interest in the answer:&lt;/P&gt;

&lt;P&gt;The problem with &lt;CODE&gt;splunk list monitor&lt;/CODE&gt; was encountered in a Universal Forwarder version 4.2.3.&lt;/P&gt;

&lt;P&gt;This seems to have been fixed in 4.3.1 (or in between). I found this out by first comparing the output of a 4.2.3 and 4.3.1 Universal forwarder, then confirmed by upgrading the 4.2.3 SUF to 4.3.1.&lt;/P&gt;

&lt;P&gt;In other word, &lt;CODE&gt;splunk list monitor&lt;/CODE&gt; will only list the logs matching the &lt;CODE&gt;monitor&lt;/CODE&gt;-stanza.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2012 11:59:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-paths-of-inputs-conf/m-p/34123#M6158</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-08-20T11:59:32Z</dc:date>
    </item>
  </channel>
</rss>

