<?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: How to monitor two paths in the inputs.conf under one sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-two-paths-in-the-inputs-conf-under-one-sourcetype/m-p/179226#M35937</link>
    <description>&lt;P&gt;The &lt;CODE&gt;markdown&lt;/CODE&gt; chewed up your formatting so I cannot tell what you meant;  Edit it again and put 4 spaces in front of each of your code lines and &lt;CODE&gt;markdown&lt;/CODE&gt; will not modify it.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2015 05:09:02 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-07T05:09:02Z</dc:date>
    <item>
      <title>How to monitor two paths in the inputs.conf under one sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-two-paths-in-the-inputs-conf-under-one-sourcetype/m-p/179222#M35933</link>
      <description>&lt;P&gt;In my inputs.conf file, I have an entry for a sourcetype that I want to change.&lt;/P&gt;

&lt;P&gt;Currently, it monitors the path: &lt;CODE&gt;/opt/A_*/B/C/Logs/Splunk/*.log&lt;/CODE&gt;. &lt;BR /&gt;
I would also like to monitor the path:  &lt;CODE&gt;/opt/A_*/B/D/Logs/Splunk/*.log&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;At first I thought that I could do this: &lt;CODE&gt;/opt/A_*/B/*/Logs/Splunk/*.log&lt;/CODE&gt;, but there is a folder that I do not want to be ingested into splunk under this sourcetype: &lt;CODE&gt;/opt/A_*/B/E/Logs/Splunk/*.log&lt;/CODE&gt;  (There's actually multiple files that I do not want to ingest, some of which have not been created yet).&lt;/P&gt;

&lt;P&gt;Whats the best way to (only) monitor &lt;CODE&gt;/opt/A_*/B/C/Logs/Splunk/*.log&lt;/CODE&gt; and &lt;CODE&gt;/opt/A_*/B/D/Logs/Splunk/*.log&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2015 14:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-two-paths-in-the-inputs-conf-under-one-sourcetype/m-p/179222#M35933</guid>
      <dc:creator>Splunkster45</dc:creator>
      <dc:date>2015-06-26T14:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor two paths in the inputs.conf under one sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-two-paths-in-the-inputs-conf-under-one-sourcetype/m-p/179223#M35934</link>
      <description>&lt;P&gt;You have 2 options: use &lt;CODE&gt;blacklist&lt;/CODE&gt; and &lt;CODE&gt;whitelist&lt;/CODE&gt; configurations in your &lt;CODE&gt;inputs.conf&lt;/CODE&gt; file (that is what I would do) OR, have splunk monitor a different directly and run a cron job to create links in that directory that point back to the files in the original directory but only for the files that you would like to forward.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/admin/inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/admin/inputsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2015 14:55:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-two-paths-in-the-inputs-conf-under-one-sourcetype/m-p/179223#M35934</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-26T14:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor two paths in the inputs.conf under one sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-two-paths-in-the-inputs-conf-under-one-sourcetype/m-p/179224#M35935</link>
      <description>&lt;P&gt;so, you mean something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/A_*/B/.../Logs/Splunk/*.log]
whitelist= \/opt\/A_*/B/(C|D)\/Logs\/Splunk\/*.log
index=a
sourcetype=b
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jun 2015 16:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-two-paths-in-the-inputs-conf-under-one-sourcetype/m-p/179224#M35935</guid>
      <dc:creator>Splunkster45</dc:creator>
      <dc:date>2015-06-26T16:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor two paths in the inputs.conf under one sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-two-paths-in-the-inputs-conf-under-one-sourcetype/m-p/179225#M35936</link>
      <description>&lt;P&gt;try like: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [monitor:///opt/A_*/B/C/Logs/Splunk/*.log  ]
  disabled = false
  index = your_index_name
  sourcetype = your_sourcetype_name

 [monitor:///opt/A_*/B/D/Logs/Splunk/*.log ]
  disabled = false
  index = your_index_name
  sourcetype = your_sourcetype_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Jun 2015 21:34:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-two-paths-in-the-inputs-conf-under-one-sourcetype/m-p/179225#M35936</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-06-27T21:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor two paths in the inputs.conf under one sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-two-paths-in-the-inputs-conf-under-one-sourcetype/m-p/179226#M35937</link>
      <description>&lt;P&gt;The &lt;CODE&gt;markdown&lt;/CODE&gt; chewed up your formatting so I cannot tell what you meant;  Edit it again and put 4 spaces in front of each of your code lines and &lt;CODE&gt;markdown&lt;/CODE&gt; will not modify it.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 05:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-two-paths-in-the-inputs-conf-under-one-sourcetype/m-p/179226#M35937</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-07T05:09:02Z</dc:date>
    </item>
  </channel>
</rss>

