<?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 Adding a directory with variables in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Adding-a-directory-with-variables/m-p/147182#M29975</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I'm trying to index a directory, that has subdirectories in this format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-Directory
        ---Sub Directory
                 -----Logs
        ---Sub Directory
                 -----Logs
        ---Sub Directory
                 -----Logs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Like the above, and basically I want to add 1 data input, which would look something like /directory/.../logs   so the ... can be any of the sub directory names.  Please can somebody help with some syntax on how to do this.&lt;/P&gt;

&lt;P&gt;I look forward to your response.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2014 13:06:07 GMT</pubDate>
    <dc:creator>markthompson</dc:creator>
    <dc:date>2014-10-01T13:06:07Z</dc:date>
    <item>
      <title>Adding a directory with variables</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-a-directory-with-variables/m-p/147182#M29975</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I'm trying to index a directory, that has subdirectories in this format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-Directory
        ---Sub Directory
                 -----Logs
        ---Sub Directory
                 -----Logs
        ---Sub Directory
                 -----Logs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Like the above, and basically I want to add 1 data input, which would look something like /directory/.../logs   so the ... can be any of the sub directory names.  Please can somebody help with some syntax on how to do this.&lt;/P&gt;

&lt;P&gt;I look forward to your response.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-a-directory-with-variables/m-p/147182#M29975</guid>
      <dc:creator>markthompson</dc:creator>
      <dc:date>2014-10-01T13:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a directory with variables</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-a-directory-with-variables/m-p/147183#M29976</link>
      <description>&lt;P&gt;You can use wildcards in the directory path. I often use something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///export/oracle/diag/rdbms/*/*/trace/alert*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to pick up logs for all of my databases with a single monitor.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-a-directory-with-variables/m-p/147183#M29976</guid>
      <dc:creator>pmdba</dc:creator>
      <dc:date>2014-10-01T13:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a directory with variables</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-a-directory-with-variables/m-p/147184#M29977</link>
      <description>&lt;P&gt;Hi markthompson,&lt;/P&gt;

&lt;P&gt;that's exactly what you need to do, create a monitor stanza in inputs.conf (or in the UI, data inputs) that looks likt this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [monitor://directory/.../Logs/*]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;see the docs for more details &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/Data/Specifyinputpathswithwildcards"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/Data/Specifyinputpathswithwildcards&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope that helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:12:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-a-directory-with-variables/m-p/147184#M29977</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-10-01T13:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a directory with variables</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-a-directory-with-variables/m-p/147185#M29978</link>
      <description>&lt;P&gt;Hey MuS, can you tell me the path for the inputs.conf please.  splunk -&amp;gt; etc?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:52:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-a-directory-with-variables/m-p/147185#M29978</guid>
      <dc:creator>markthompson</dc:creator>
      <dc:date>2014-10-01T13:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a directory with variables</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Adding-a-directory-with-variables/m-p/147186#M29979</link>
      <description>&lt;P&gt;Hi, you would do that on the directory source server and in &lt;CODE&gt;etc/system/local/inputs.conf&lt;/CODE&gt; for example&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 18:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Adding-a-directory-with-variables/m-p/147186#M29979</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-10-01T18:07:19Z</dc:date>
    </item>
  </channel>
</rss>

