<?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 paths with wildcards for the sub-directories tree in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Input-paths-with-wildcards-for-the-sub-directories-tree/m-p/493827#M84352</link>
    <description>&lt;P&gt;This assumes that &lt;CODE&gt;.../dev/dev/...&lt;/CODE&gt; is really the path and not a double-paste error.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2019 22:57:05 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-11-26T22:57:05Z</dc:date>
    <item>
      <title>Input paths with wildcards for the sub-directories tree</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-paths-with-wildcards-for-the-sub-directories-tree/m-p/493825#M84350</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I haven't dealt a lot with wildcards in Paths for Inputs, so will appreciate your help.&lt;/P&gt;

&lt;P&gt;We need to monitor  logs in SyslogLog sub-directory: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/our-application/var/log/our-processor/message_logging/dev/&amp;lt;environment&amp;gt;/&amp;lt;proxy-name&amp;gt;/&amp;lt;revision&amp;gt;/SyslogLog/name_of_log.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For example from the following available directories we need to get only 1),4), 5) and  7) ,8), 10)files &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1) /opt/our-application/var/log/our-processor/message_logging/dev/dev/company_proxy_name_1/1/SyslogLog/name_of_1_log.log
2) /opt/our-application/var/log/our-processor/message_logging/dev/dev/company_proxy_name_1/1/SyslogLog/name_of_1_log.log.1
3) /opt/our-application/var/log/our-processor/message_logging/dev/dev/company_proxy_name_1/1/SyslogLog/name_of_1_log.log.2
4) /opt/our-application/var/log/our-processor/message_logging/dev/dev/company_proxy_name_1/2/SyslogLog/name_of_2_log.log
5) /opt/our-application/var/log/our-processor/message_logging/dev/dev/company_proxy_name_1/3/SyslogLog/name_of_3_log.log
6) /opt/our-application/var/log/our-processor/message_logging/dev/dev/company_proxy_name_1/3/FastLog/name_of_4_log.log

7) /opt/our-application/var/log/our-processor/message_logging/dev/dev/company_proxy_name_2/1/SyslogLog/name_of_5_log.log
8) /opt/our-application/var/log/our-processor/message_logging/dev/dev/company_proxy_name_2/2/SyslogLog/name_of_6_log.log
9) /opt/our-application/var/log/our-processor/message_logging/dev/dev/company_proxy_name_2/3/FastLog/name_of_7_log.log
10) /opt/our-application/var/log/our-processor/message_logging/dev/dev/company_proxy_name_2/4/SyslogLog/name_of_8_log.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Will the following template on the Path with "*" work? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/our-application/var/log/our-processor/message_logging/dev/*/*/SyslogLog/*.log]
index = our_index
sourcetype = our_sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 22:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-paths-with-wildcards-for-the-sub-directories-tree/m-p/493825#M84350</guid>
      <dc:creator>mlevsh</dc:creator>
      <dc:date>2019-11-26T22:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Input paths with wildcards for the sub-directories tree</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-paths-with-wildcards-for-the-sub-directories-tree/m-p/493826#M84351</link>
      <description>&lt;P&gt;Missed it by &amp;gt;that&amp;lt; much; try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/our-application/var/log/our-processor/message_logging/dev/*/*/*/SyslogLog/*.log]
index = our_index
sourcetype = our_sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 22:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-paths-with-wildcards-for-the-sub-directories-tree/m-p/493826#M84351</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-26T22:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Input paths with wildcards for the sub-directories tree</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-paths-with-wildcards-for-the-sub-directories-tree/m-p/493827#M84352</link>
      <description>&lt;P&gt;This assumes that &lt;CODE&gt;.../dev/dev/...&lt;/CODE&gt; is really the path and not a double-paste error.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 22:57:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-paths-with-wildcards-for-the-sub-directories-tree/m-p/493827#M84352</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-26T22:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Input paths with wildcards for the sub-directories tree</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-paths-with-wildcards-for-the-sub-directories-tree/m-p/493828#M84353</link>
      <description>&lt;P&gt;@woodcock , thank you! Will test tomorrow!&lt;BR /&gt;
.../dev/dev/... is really the path.&lt;BR /&gt;
it is possible that users might have other sub-folders under first dev.&lt;BR /&gt;
Something like .../dev/dev_pse/... &lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 02:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-paths-with-wildcards-for-the-sub-directories-tree/m-p/493828#M84353</guid>
      <dc:creator>mlevsh</dc:creator>
      <dc:date>2019-11-27T02:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Input paths with wildcards for the sub-directories tree</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-paths-with-wildcards-for-the-sub-directories-tree/m-p/493829#M84354</link>
      <description>&lt;P&gt;@woodcock  , sorry for a delay. &lt;BR /&gt;
Tested and it worked. Thank you so much as always!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 17:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-paths-with-wildcards-for-the-sub-directories-tree/m-p/493829#M84354</guid>
      <dc:creator>mlevsh</dc:creator>
      <dc:date>2019-12-11T17:06:39Z</dc:date>
    </item>
  </channel>
</rss>

