<?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: Help with input monitoring in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197361#M39208</link>
    <description>&lt;P&gt;You can use wildcards in the path. E.g. /apps/oracle/install/admin/instances/*/myfile&lt;/P&gt;

&lt;P&gt;For a look at a variety of input types, including this one, check out &lt;A href="https://apps.splunk.com/app/1538/"&gt;Log File Analysis for Oracle 11g&lt;/A&gt; on the apps.splunk.com web site.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jan 2015 21:39:23 GMT</pubDate>
    <dc:creator>pmdba</dc:creator>
    <dc:date>2015-01-22T21:39:23Z</dc:date>
    <item>
      <title>Help with input monitoring</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197360#M39207</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to monitor some logs where I need to wildcard part of the hostname into the path.  Is that possible:&lt;/P&gt;

&lt;P&gt;For example, I have:&lt;/P&gt;

&lt;P&gt;/apps/oracle/install/admin/instances &lt;BR /&gt;
/apps/oracle/install/admin/instances/ovdpmmk1a&lt;BR /&gt;
/apps/oracle/install/admin/instances/ovdpmmk1b&lt;BR /&gt;
/apps/oracle/install/admin/instances/ovdpmmk2a&lt;BR /&gt;
/apps/oracle/install/admin/instances/ovdpmmk2b&lt;BR /&gt;
/apps/oracle/install/admin/instances/ovdpmmk3a&lt;BR /&gt;
/apps/oracle/install/admin/instances/ovdpmmk3b... (it keeps going)&lt;/P&gt;

&lt;P&gt;The hostname is ovdpmmk1.  On this server, I want to monitor certain files in the ovdpmmk1a  and 1b directories.  On the ovdpmmk2 server, I want to monitor certain files in the ovdpmmk2a and 2b directory.  Is there a way to take the hostname and make it part of the inputs?&lt;/P&gt;

&lt;P&gt;So monitor:.../apps/oracle/install/admin/instances/REGEXFORHOSTNAME/myfile?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 12:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197360#M39207</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-01-22T12:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with input monitoring</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197361#M39208</link>
      <description>&lt;P&gt;You can use wildcards in the path. E.g. /apps/oracle/install/admin/instances/*/myfile&lt;/P&gt;

&lt;P&gt;For a look at a variety of input types, including this one, check out &lt;A href="https://apps.splunk.com/app/1538/"&gt;Log File Analysis for Oracle 11g&lt;/A&gt; on the apps.splunk.com web site.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 21:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197361#M39208</guid>
      <dc:creator>pmdba</dc:creator>
      <dc:date>2015-01-22T21:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with input monitoring</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197362#M39209</link>
      <description>&lt;P&gt;I don't think wildcards will work in this case, if I want to use only one input. Looking for hostname variable or something like that...&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 22:15:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197362#M39209</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-01-22T22:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with input monitoring</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197363#M39210</link>
      <description>&lt;P&gt;Does this still apply? Pretty old...seems like a similar situation.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2009/07/09/monitoring-input-files-with-a-white-list/"&gt;http://blogs.splunk.com/2009/07/09/monitoring-input-files-with-a-white-list/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 01:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197363#M39210</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-01-23T01:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with input monitoring</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197364#M39211</link>
      <description>&lt;P&gt;I use wildcards for similar situations. For instance, I pick up alert log files for Oracle with something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;monitor:///apps/oracle/diag/rdbms/*/*/trace/alert*.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This picks up all alert logs on the system for every database, including any that I might add in the future, with one input. In your case I would think something like this would work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/apps/oracle/install/admin/instances/ovdpmmk*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jan 2015 21:11:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197364#M39211</guid>
      <dc:creator>pmdba</dc:creator>
      <dc:date>2015-01-23T21:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with input monitoring</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197365#M39212</link>
      <description>&lt;P&gt;That won't work because there are 4 directories of ovdpmmk on each server, and I only want the one that matches the hostname.  So, if the hostname is ovdpmmk1, I want that one, if it's ovdpmmk2, I want ovdpmmk2....&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jan 2015 04:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197365#M39212</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-01-24T04:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with input monitoring</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197366#M39213</link>
      <description>&lt;P&gt;I begin to see the difficulty. I haven't tried this - perhaps you have already - but would something like this work?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; /apps/oracle/install/admin/instances/${hostname}*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You just need a common environment variable that returns the hostname...&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jan 2015 22:58:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197366#M39213</guid>
      <dc:creator>pmdba</dc:creator>
      <dc:date>2015-01-24T22:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with input monitoring</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197367#M39214</link>
      <description>&lt;P&gt;That's what I'm looking for... I'll try it.  Wasn't sure which variables that are allowed in stanza's....&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jan 2015 14:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-input-monitoring/m-p/197367#M39214</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-01-25T14:48:11Z</dc:date>
    </item>
  </channel>
</rss>

