<?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 input more than one sourcetype data from a directory ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-input-more-than-one-sourcetype-data-from-a-directory/m-p/57011#M11131</link>
    <description>&lt;P&gt;You cannot merge those two stanzas into one because their setting for sourcetype is different. If you merged them you could only keep one sourcetype.&lt;/P&gt;

&lt;P&gt;Consider adding the distinguishing part to the path in the stanza header.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2013 09:53:50 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-03-11T09:53:50Z</dc:date>
    <item>
      <title>How to input more than one sourcetype data from a directory ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-input-more-than-one-sourcetype-data-from-a-directory/m-p/57010#M11130</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have been storing two types of log in the same directory. One is ANSI, another is Unicode. I use different definition of file name to distinguish like xxA.csv and xxW.csv.&lt;/P&gt;

&lt;P&gt;I would like to let the directory as a input and index both of the types. I could use whitelist attributes in inputs.conf to separate them into two sourcetypes. But I cannot figure out how to the merge the following stanzas into one.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\myLog]
disabled = false
followTail = 0
index = main
whitelist = W\.csv
sourcetype = myutf16

[monitor://C:\myLog]
disabled = false
followTail = 0
index = main
whitelist = A\.csv
sourcetype = myansi
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does anyone know how to do this?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:16:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-input-more-than-one-sourcetype-data-from-a-directory/m-p/57010#M11130</guid>
      <dc:creator>lzhang_soliton</dc:creator>
      <dc:date>2013-03-11T09:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to input more than one sourcetype data from a directory ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-input-more-than-one-sourcetype-data-from-a-directory/m-p/57011#M11131</link>
      <description>&lt;P&gt;You cannot merge those two stanzas into one because their setting for sourcetype is different. If you merged them you could only keep one sourcetype.&lt;/P&gt;

&lt;P&gt;Consider adding the distinguishing part to the path in the stanza header.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:53:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-input-more-than-one-sourcetype-data-from-a-directory/m-p/57011#M11131</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-11T09:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to input more than one sourcetype data from a directory ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-input-more-than-one-sourcetype-data-from-a-directory/m-p/57012#M11132</link>
      <description>&lt;P&gt;martin_mueller,&lt;/P&gt;

&lt;P&gt;Thanks for your post!&lt;/P&gt;

&lt;P&gt;I added asterisk(*) to one of paths in the stanza header. It works well.&lt;/P&gt;

&lt;P&gt;[monitor://C:\myLog]&lt;BR /&gt;
whitelist = W.csv&lt;BR /&gt;
sourcetype = myutf16&lt;/P&gt;

&lt;P&gt;[monitor://C:\myLog/*]&lt;BR /&gt;
whitelist = A.csv&lt;BR /&gt;
sourcetype = myansi&lt;/P&gt;

&lt;P&gt;I really appreciate your comments!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 07:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-input-more-than-one-sourcetype-data-from-a-directory/m-p/57012#M11132</guid>
      <dc:creator>lzhang_soliton</dc:creator>
      <dc:date>2013-03-12T07:46:32Z</dc:date>
    </item>
  </channel>
</rss>

