<?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 Create perfect File Directory Matching for Input Stanze in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Create-perfect-File-Directory-Matching-for-Input-Stanze/m-p/552364#M91646</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to create a monitoring stanza that comnines the below log paths&lt;/P&gt;&lt;P&gt;[monitor:///opt/tomcat/logs/localhost_access_log*.log]&lt;BR /&gt;[monitor:///opt/rh/jws5/root/usr/share/tomcat/logs/localhost_access_log*.log]&lt;BR /&gt;[monitor:///opt/prozone/tas-community-7.6-1/multiserver/logs/localhost_access_log*.log]&lt;BR /&gt;[monitor:///opt/apache-tomcat*/logs/localhost_access_log*.log]&lt;BR /&gt;[monitor:///opt/atlassian/jira/logs/localhost_access_log*.log]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Will something like this work for all?&lt;/P&gt;&lt;P&gt;[monitor:///opt/../.../logs/localhost_access_log*.log]&lt;/P&gt;&lt;P&gt;[monitor:///opt/../.../.../logs/localhost_access_log*.log]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the best solution that you guys would propose?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;O.&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 10:20:02 GMT</pubDate>
    <dc:creator>ojay</dc:creator>
    <dc:date>2021-05-20T10:20:02Z</dc:date>
    <item>
      <title>Create perfect File Directory Matching for Input Stanze</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-perfect-File-Directory-Matching-for-Input-Stanze/m-p/552364#M91646</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to create a monitoring stanza that comnines the below log paths&lt;/P&gt;&lt;P&gt;[monitor:///opt/tomcat/logs/localhost_access_log*.log]&lt;BR /&gt;[monitor:///opt/rh/jws5/root/usr/share/tomcat/logs/localhost_access_log*.log]&lt;BR /&gt;[monitor:///opt/prozone/tas-community-7.6-1/multiserver/logs/localhost_access_log*.log]&lt;BR /&gt;[monitor:///opt/apache-tomcat*/logs/localhost_access_log*.log]&lt;BR /&gt;[monitor:///opt/atlassian/jira/logs/localhost_access_log*.log]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Will something like this work for all?&lt;/P&gt;&lt;P&gt;[monitor:///opt/../.../logs/localhost_access_log*.log]&lt;/P&gt;&lt;P&gt;[monitor:///opt/../.../.../logs/localhost_access_log*.log]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the best solution that you guys would propose?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;O.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 10:20:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-perfect-File-Directory-Matching-for-Input-Stanze/m-p/552364#M91646</guid>
      <dc:creator>ojay</dc:creator>
      <dc:date>2021-05-20T10:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create perfect File Directory Matching for Input Stanze</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-perfect-File-Directory-Matching-for-Input-Stanze/m-p/552458#M91649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234184"&gt;@ojay&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per inputs conf,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Use
  "..." for recursive directory matching and "*" for wildcard matching in a
  single directory segment.
* "..." recurses through directories. This means that /foo/.../bar matches
  foo/1/bar, foo/1/2/bar, etc.&lt;/LI-CODE&gt;&lt;P&gt;For your case a single monitor stanza should work for all directory combinations, I am hoping you will be using same sourcetype as all these logs of same type.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///opt/.../logs/localhost_access_log*.log]&lt;/LI-CODE&gt;&lt;P&gt;You can go through inputs conf spec here &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf#MONITOR:" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf#MONITOR:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;-------------------------------------------------------------&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if it helps!&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 21:43:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-perfect-File-Directory-Matching-for-Input-Stanze/m-p/552458#M91649</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-05-20T21:43:22Z</dc:date>
    </item>
  </channel>
</rss>

