<?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: Input monitor wildcard and whitelist in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Input-monitor-wildcard-and-whitelist/m-p/20098#M2908</link>
    <description>&lt;P&gt;edit the source input path via Manager&lt;BR /&gt;
/logs/.../\w+\.\w+-\d+-\d+-\d+&lt;BR /&gt;
or if this is too generic then&lt;BR /&gt;
/logs/.../application\.log-\d+-\d+-\d+&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2012 02:51:17 GMT</pubDate>
    <dc:creator>cvajs</dc:creator>
    <dc:date>2012-04-06T02:51:17Z</dc:date>
    <item>
      <title>Input monitor wildcard and whitelist</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-monitor-wildcard-and-whitelist/m-p/20097#M2907</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;
I read all I could find in the docs and in splunkbase but I'm still struggling with that simple problem:&lt;/P&gt;

&lt;P&gt;I need to index all the log files corresponding to these paths:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/logs/serv1/apache-tomcat4/logs/application.log-2012-01-01
/logs/serv2/apache-tomcat3/logs/application.log-2011-01-01
/logs/serv3/apache-tomcat1/logs/application.log-2010-01-01
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This would be generalized as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/logs/serv[0-9]/apache-tomcat[1-4]/logs/application\.log.*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I cannot find a way to configure the monitor path of inputs.conf nor the whitelist to only index those files.&lt;/P&gt;

&lt;P&gt;Mainly, I want to avoid indexing files from paths like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/logs/serv3/apache-tomcat2OLD/logs/application.log-2010-01-01
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All I see depending of what I try is the index getting Data input file count raise but nothing getting indexed, and a lot of "ERROR TailingProcessor - matching" in the splunkd.log file.&lt;/P&gt;

&lt;P&gt;The only time it works is when I specify the full paths without wildcards in the monitor url like:&lt;BR /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/logs/serv1/apache-tomcat1/logs/application.log*
/logs/serv1/apache-tomcat2/logs/application.log*
/logs/serv1/apache-tomcat3/logs/application.log*
/logs/serv1/apache-tomcat4/logs/application.log*
/logs/serv2/apache-tomcat1/logs/application.log*
etc...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I don't want to have all of them as separate inputs if I can specify one regex to match them all. &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2012 15:56:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-monitor-wildcard-and-whitelist/m-p/20097#M2907</guid>
      <dc:creator>johnsmith78</dc:creator>
      <dc:date>2012-04-05T15:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Input monitor wildcard and whitelist</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-monitor-wildcard-and-whitelist/m-p/20098#M2908</link>
      <description>&lt;P&gt;edit the source input path via Manager&lt;BR /&gt;
/logs/.../\w+\.\w+-\d+-\d+-\d+&lt;BR /&gt;
or if this is too generic then&lt;BR /&gt;
/logs/.../application\.log-\d+-\d+-\d+&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2012 02:51:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-monitor-wildcard-and-whitelist/m-p/20098#M2908</guid>
      <dc:creator>cvajs</dc:creator>
      <dc:date>2012-04-06T02:51:17Z</dc:date>
    </item>
  </channel>
</rss>

