<?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: Overlapping Inputs With Different Charset in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Overlapping-Inputs-With-Different-Charset/m-p/40203#M7461</link>
    <description>&lt;P&gt;hi, Thanks for the input.&lt;/P&gt;

&lt;P&gt;unfortunately, adding the CHARSET directive into the sourcetype does nothing for me- the entries show up as line noise, just like if the directive wasn't set.&lt;/P&gt;</description>
    <pubDate>Fri, 04 May 2012 15:36:23 GMT</pubDate>
    <dc:creator>tgiles</dc:creator>
    <dc:date>2012-05-04T15:36:23Z</dc:date>
    <item>
      <title>Overlapping Inputs With Different Charset</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overlapping-Inputs-With-Different-Charset/m-p/40201#M7459</link>
      <description>&lt;P&gt;Hi, All. I have an overlapping path issue in Windows that I might need some assist on. &lt;/P&gt;

&lt;P&gt;I have the contents of two directories which need monitoring (all files have the .log extension):&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;C:\Program Files\MyApp\Client\ConnLog&lt;/LI&gt;
&lt;LI&gt;C:\Program Files\MyApp\Client\report&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Looks like Splunk has issues with overlapping monitor inputs[1], so I can't monitor the directories with separate input stanzas. The files in the 'report' directory have (for whatever reason) ISO-8859-1 encoding. Splunk requires a separate props.conf directive so the log files are read correctly.&lt;/P&gt;

&lt;P&gt;I'm unable to set the input to the parent directory (like "C:\Program Files\MyApp\Client") since the character set change in the report/ directory. Also, there are other files which I don't want to read from the parent directory.&lt;/P&gt;

&lt;P&gt;Here's an example (not-really-working) configuration I'm using at the moment. &lt;/P&gt;

&lt;P&gt;Have any thoughts on how I will be able to read the contents of both directories as well as read the report directory with the appropriate character set intact? &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;-- inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\Program Files\MyApp\Client\ConnLog]
sourcetype = conn_log
followTail = 1
crcSalt = &amp;lt;source&amp;gt;

[monitor://C:\Program Files\MyApp\Client\report]
sourcetype = report_log
followTail = 1
crcSalt = &amp;lt;source&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;-- props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::C:\Program Files\MyApp\Client\report]
CHARSET = ISO-8859-1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;[1] &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Monitorfilesanddirectories"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Monitorfilesanddirectories&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2012 15:28:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overlapping-Inputs-With-Different-Charset/m-p/40201#M7459</guid>
      <dc:creator>tgiles</dc:creator>
      <dc:date>2012-05-01T15:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping Inputs With Different Charset</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overlapping-Inputs-With-Different-Charset/m-p/40202#M7460</link>
      <description>&lt;P&gt;This should work, you can maybe try setting the character set by using sourcetype instead of source:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[report_log]
CHARSET = ISO-8859-1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Make sure that you added the props.conf file on the forwarder, not the indexer.&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2012 18:04:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overlapping-Inputs-With-Different-Charset/m-p/40202#M7460</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2012-05-01T18:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping Inputs With Different Charset</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overlapping-Inputs-With-Different-Charset/m-p/40203#M7461</link>
      <description>&lt;P&gt;hi, Thanks for the input.&lt;/P&gt;

&lt;P&gt;unfortunately, adding the CHARSET directive into the sourcetype does nothing for me- the entries show up as line noise, just like if the directive wasn't set.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 15:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overlapping-Inputs-With-Different-Charset/m-p/40203#M7461</guid>
      <dc:creator>tgiles</dc:creator>
      <dc:date>2012-05-04T15:36:23Z</dc:date>
    </item>
  </channel>
</rss>

