<?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 inputs.conf not picking up monitored file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-not-picking-up-monitored-file/m-p/98426#M20557</link>
    <description>&lt;P&gt;I have what appears to be a simple monitor to watch for a specific file name with a regex to define the date stamped file.&lt;BR /&gt;
The file in question is named,  /log/blahblah_0.0.0.653_9110.log&lt;/P&gt;

&lt;P&gt;On my LWF I have the following simple inputs.conf definition:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///log/blahblah_.*\.log]
disabled=false
sourcetype=search-log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From ../splunkd.log I get the following error.&lt;BR /&gt;
INFO  TailingProcessor - No configurations match, will ignore path='/log/blahblah_0.0.0.653_9110.log'&lt;/P&gt;

&lt;P&gt;I have also defined a monitor based on a whitelist with the same result.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///log]
disabled=false
whitelist = blahblah_.*.log$
sourcetype=search-log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My question is, "why does Splunk not want to index this file? I have confirmed the Regex is defined correctly, so I believe that is not it. Most likely it is something VERY simple where I can't see the forest through the trees.&lt;/P&gt;

&lt;P&gt;Thoughts?&lt;BR /&gt;
MasterOogway&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:32:36 GMT</pubDate>
    <dc:creator>MasterOogway</dc:creator>
    <dc:date>2020-09-28T09:32:36Z</dc:date>
    <item>
      <title>inputs.conf not picking up monitored file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-not-picking-up-monitored-file/m-p/98426#M20557</link>
      <description>&lt;P&gt;I have what appears to be a simple monitor to watch for a specific file name with a regex to define the date stamped file.&lt;BR /&gt;
The file in question is named,  /log/blahblah_0.0.0.653_9110.log&lt;/P&gt;

&lt;P&gt;On my LWF I have the following simple inputs.conf definition:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///log/blahblah_.*\.log]
disabled=false
sourcetype=search-log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From ../splunkd.log I get the following error.&lt;BR /&gt;
INFO  TailingProcessor - No configurations match, will ignore path='/log/blahblah_0.0.0.653_9110.log'&lt;/P&gt;

&lt;P&gt;I have also defined a monitor based on a whitelist with the same result.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///log]
disabled=false
whitelist = blahblah_.*.log$
sourcetype=search-log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My question is, "why does Splunk not want to index this file? I have confirmed the Regex is defined correctly, so I believe that is not it. Most likely it is something VERY simple where I can't see the forest through the trees.&lt;/P&gt;

&lt;P&gt;Thoughts?&lt;BR /&gt;
MasterOogway&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:32:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-not-picking-up-monitored-file/m-p/98426#M20557</guid>
      <dc:creator>MasterOogway</dc:creator>
      <dc:date>2020-09-28T09:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf not picking up monitored file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-not-picking-up-monitored-file/m-p/98427#M20558</link>
      <description>&lt;P&gt;Is it possible to open up your filter or are there lots of files in this directory? I preferred your second approach, but with a more simple regex like .*log for example. You could also try the line in the input file: "crcSalt = &amp;lt;SOURCE&amp;gt;" &lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2011 09:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-not-picking-up-monitored-file/m-p/98427#M20558</guid>
      <dc:creator>fox</dc:creator>
      <dc:date>2011-05-10T09:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf not picking up monitored file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-not-picking-up-monitored-file/m-p/98428#M20559</link>
      <description>&lt;P&gt;I tried it with and without the crcSalt=&lt;SOURCE&gt; line without luck. Short of naming the file explicitly I have tried just about every combination. Still looking for the "aha" answer.&lt;/SOURCE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2011 11:56:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-not-picking-up-monitored-file/m-p/98428#M20559</guid>
      <dc:creator>MasterOogway</dc:creator>
      <dc:date>2011-05-10T11:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf not picking up monitored file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-not-picking-up-monitored-file/m-p/98429#M20560</link>
      <description>&lt;P&gt;We are having the same issue here.  Many files are not being indexed.  We have tried unsuccessfully to add the "crcSalt = &lt;SOURCE&gt;".  Does anyone have any other solutions to this?&lt;/SOURCE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2011 18:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-not-picking-up-monitored-file/m-p/98429#M20560</guid>
      <dc:creator>brantramey</dc:creator>
      <dc:date>2011-08-05T18:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf not picking up monitored file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-not-picking-up-monitored-file/m-p/98430#M20561</link>
      <description>&lt;P&gt;I'm not sure if I have what you're looking for, but here's some more info that might be helpful.&lt;/P&gt;

&lt;P&gt;First, I don't believe that the crcSalt line is going to help here.  My understanding is that that just helps Splunk understand when it might or might not be looking at the same file (or the events in a file) that it's indexed previously.  I don't think that has anything to do with adding the file to the list of files to monitor.&lt;/P&gt;

&lt;P&gt;So what did "splunk list monitor" report?  Did it show that at least /log was being monitored but the blahblah*.log file was not being monitored?&lt;/P&gt;

&lt;P&gt;One important thing to note is that the line&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///log/blahblah_.*\.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is probably not doing what you think it is.   Remember that in this context, there are some regex shortcuts that are being taken.  If your file really is named &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;blahblah_0.0.0.653_9110.log&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;then&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///log/blahblah_.*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(i.e. no escaped '.' since '.' is the literal period character) should work.  Remember that this is creating an implicit whitelist.  I'm actually not sure what the '.' would do, but I'd guess that it might actually look for a backslash followed by a dot.&lt;/P&gt;

&lt;P&gt;I would have thought your whitelist version might have worked assuming you were using a version of newer version of Splunk where "whitelist" replaced the older "_whitelist" keyword.&lt;/P&gt;

&lt;P&gt;Lowell and gkanapathy were kind enough to write up some nice details to a question I had a while back about the use of wildcards and regexes in inputs.conf at&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/2775/regexs-and-windows-paths-in-inputsconf-and-propsconf" target="_blank"&gt;http://splunk-base.splunk.com/answers/2775/regexs-and-windows-paths-in-inputsconf-and-propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;in case that might also provide some further clues.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-not-picking-up-monitored-file/m-p/98430#M20561</guid>
      <dc:creator>mfrost8</dc:creator>
      <dc:date>2020-09-28T09:49:16Z</dc:date>
    </item>
  </channel>
</rss>

