<?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 Multiple wildcards for file path in inputs.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-wildcards-for-file-path-in-inputs-conf/m-p/404963#M71874</link>
    <description>&lt;P&gt;I need to monitor a file under multiple similar paths, the full path can be dynamic so putting absolute path is not an option.&lt;/P&gt;

&lt;P&gt;Actual path example: &lt;STRONG&gt;E:\OpenPages\profiles\OpenPagesNode1\logs\OpenPagesNodeServer2Server3\http_error.log&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;So I have the following monitor stanza and it doesn't pick up the files. Nothing useful in _internal log which indicate any problem.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://E:\OpenPages\profiles\OpenPagesNode*\logs\OpenPagesNodeServer*\http_error.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I suspect it's due to multiple wildcards on the path, since other file with similar stanza picked up just fine, as below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://E:\OpenPages\profiles\OpenPagesNode*\logs\ffdc\(nodeagent|OpenPagesNode)*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can't really play around with it at the moment, but I'm pretty sure it'll work if I use the following monitor stanza instead,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://E:\OpenPages\profiles\...\http_error.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I want to avoid it if possible since it will force the forwarder to traverse through all irrelevant subdirectories.&lt;/P&gt;

&lt;P&gt;Any good suggestion?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2019 05:39:56 GMT</pubDate>
    <dc:creator>budimaos</dc:creator>
    <dc:date>2019-04-11T05:39:56Z</dc:date>
    <item>
      <title>Multiple wildcards for file path in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-wildcards-for-file-path-in-inputs-conf/m-p/404963#M71874</link>
      <description>&lt;P&gt;I need to monitor a file under multiple similar paths, the full path can be dynamic so putting absolute path is not an option.&lt;/P&gt;

&lt;P&gt;Actual path example: &lt;STRONG&gt;E:\OpenPages\profiles\OpenPagesNode1\logs\OpenPagesNodeServer2Server3\http_error.log&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;So I have the following monitor stanza and it doesn't pick up the files. Nothing useful in _internal log which indicate any problem.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://E:\OpenPages\profiles\OpenPagesNode*\logs\OpenPagesNodeServer*\http_error.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I suspect it's due to multiple wildcards on the path, since other file with similar stanza picked up just fine, as below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://E:\OpenPages\profiles\OpenPagesNode*\logs\ffdc\(nodeagent|OpenPagesNode)*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can't really play around with it at the moment, but I'm pretty sure it'll work if I use the following monitor stanza instead,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://E:\OpenPages\profiles\...\http_error.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I want to avoid it if possible since it will force the forwarder to traverse through all irrelevant subdirectories.&lt;/P&gt;

&lt;P&gt;Any good suggestion?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 05:39:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-wildcards-for-file-path-in-inputs-conf/m-p/404963#M71874</guid>
      <dc:creator>budimaos</dc:creator>
      <dc:date>2019-04-11T05:39:56Z</dc:date>
    </item>
  </channel>
</rss>

