<?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 Inputs.conf and Multiple sourcetypes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-and-Multiple-sourcetypes/m-p/132389#M27236</link>
    <description>&lt;P&gt;Is it possible to monitor a directory for files that will be input with different source types (assuming I'd use whitelist) or will I need to create and monitor a differnet directory for each sourcetype?&lt;/P&gt;

&lt;P&gt;So 1 Directory:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///apps/splunk/staging/prod/crd/]
sourcetype = Windows_Events
whitelist = \d+-\S{8}_Windows_Events_\d{8}.csv

[monitor:///apps/splunk/staging/prod/crd/]
sourcetype = Windows_Users
whitelist = \d+-\S{8}_Windows_Users_\d{8}.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR 2 dirs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///apps/splunk/staging/prod/crd/winEvents]
sourcetype = Windows_Events

[monitor:///apps/splunk/staging/prod/crd/winUsers]
sourcetype = Windows_Users
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Nov 2013 13:57:01 GMT</pubDate>
    <dc:creator>andrewkenth</dc:creator>
    <dc:date>2013-11-07T13:57:01Z</dc:date>
    <item>
      <title>Inputs.conf and Multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-and-Multiple-sourcetypes/m-p/132389#M27236</link>
      <description>&lt;P&gt;Is it possible to monitor a directory for files that will be input with different source types (assuming I'd use whitelist) or will I need to create and monitor a differnet directory for each sourcetype?&lt;/P&gt;

&lt;P&gt;So 1 Directory:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///apps/splunk/staging/prod/crd/]
sourcetype = Windows_Events
whitelist = \d+-\S{8}_Windows_Events_\d{8}.csv

[monitor:///apps/splunk/staging/prod/crd/]
sourcetype = Windows_Users
whitelist = \d+-\S{8}_Windows_Users_\d{8}.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR 2 dirs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///apps/splunk/staging/prod/crd/winEvents]
sourcetype = Windows_Events

[monitor:///apps/splunk/staging/prod/crd/winUsers]
sourcetype = Windows_Users
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Nov 2013 13:57:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-and-Multiple-sourcetypes/m-p/132389#M27236</guid>
      <dc:creator>andrewkenth</dc:creator>
      <dc:date>2013-11-07T13:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs.conf and Multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-and-Multiple-sourcetypes/m-p/132390#M27237</link>
      <description>&lt;P&gt;Go with option no2. That way, there are no uncertainties with how this will be handled by splunk.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 21:23:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-and-Multiple-sourcetypes/m-p/132390#M27237</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-11-07T21:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs.conf and Multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-and-Multiple-sourcetypes/m-p/132391#M27238</link>
      <description>&lt;P&gt;Option 2 is nicer and easier to troubleshoot.&lt;/P&gt;

&lt;P&gt;but there is an option 3  with a single folder. but 2 monitors, and the filter in the path.&lt;/P&gt;

&lt;P&gt;`&lt;BR /&gt;
[monitor:///apps/splunk/staging/prod/crd/.../&lt;EM&gt;Windows_Events&lt;/EM&gt;/*.csv]&lt;BR /&gt;
sourcetype = Windows_Events&lt;/P&gt;

&lt;P&gt;[monitor:///apps/splunk/staging/prod/crd/.../&lt;EM&gt;Windows_Users&lt;/EM&gt;/*.csv]&lt;BR /&gt;
sourcetype = Windows_Users&lt;BR /&gt;
`&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2013 18:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-and-Multiple-sourcetypes/m-p/132391#M27238</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-11-10T18:55:58Z</dc:date>
    </item>
  </channel>
</rss>

