<?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 can I get Splunk to index a file containing CICS output (ebcdic) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-Splunk-to-index-a-file-containing-CICS-output/m-p/147676#M185335</link>
    <description>&lt;P&gt;To my knowledge, Splunk cannot index a binary file, however the data from the file can be indexed once it is in a non binary format.  There are two approaches you could take:  &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;You could write a scripted input to get the data into Splunk.  Your script would essentially read the binary log file, extract the data from it, and put it into a text format readable by Splunk.  See the docs on setting up scripted inputs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/AdvancedDev/ScriptedInputsIntro"&gt;here&lt;/A&gt; and &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Setupcustominputs"&gt;here&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;Try the method in &lt;A href="http://blogs.splunk.com/2011/07/19/the-naughty-bits-how-to-splunk-binary-logfiles/"&gt;this blog post.&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Wed, 12 Feb 2014 14:20:34 GMT</pubDate>
    <dc:creator>wpreston</dc:creator>
    <dc:date>2014-02-12T14:20:34Z</dc:date>
    <item>
      <title>How can I get Splunk to index a file containing CICS output (ebcdic)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-Splunk-to-index-a-file-containing-CICS-output/m-p/147675#M185334</link>
      <description>&lt;P&gt;In our WebSphere environment we successfully indexes all SystemOut and SystemErr.log files except for one single cluster and its members. Problem is that one of the applications logs to SystemOut output from CICS which I have been told is encoded using ebcdic encoding. Therefore Splunk rejects the file with the following messages&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 02-12-2014 10:46:26.505 +0100 INFO  TailingProcessor - Ignoring file 'E:\logs\MyCluster\SystemOut.log' due to: binary
 02-12-2014 10:46:26.505 +0100 WARN  FileClassifierManager - The file 'E:\logs\MyCluster\SystemOut.log' is invalid. Reason: binary
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For the deployment app defining this file I have created a props.conf file in the folder&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;D:\Splunk\etc\deployment-apps\inputs_prod\default
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried all below without success&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::E:\\logs\\MyCluster\\SystemOut.log]
CHARSET = utf-ebcdic
#CHARSET = auto
#NO_BINARY_CHECK = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;First&lt;/STRONG&gt;&lt;BR /&gt;
I am not &lt;EM&gt;totally&lt;/EM&gt; sure that the location of the props.conf is correct, but I do believe so.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Secondly&lt;/STRONG&gt;&lt;BR /&gt;
Without really diving into the details and changing the application and how it logs, is it possible to configure Splunk to index the file?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:05:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-Splunk-to-index-a-file-containing-CICS-output/m-p/147675#M185334</guid>
      <dc:creator>rune_hellem</dc:creator>
      <dc:date>2014-02-12T10:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get Splunk to index a file containing CICS output (ebcdic)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-Splunk-to-index-a-file-containing-CICS-output/m-p/147676#M185335</link>
      <description>&lt;P&gt;To my knowledge, Splunk cannot index a binary file, however the data from the file can be indexed once it is in a non binary format.  There are two approaches you could take:  &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;You could write a scripted input to get the data into Splunk.  Your script would essentially read the binary log file, extract the data from it, and put it into a text format readable by Splunk.  See the docs on setting up scripted inputs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/AdvancedDev/ScriptedInputsIntro"&gt;here&lt;/A&gt; and &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Setupcustominputs"&gt;here&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;Try the method in &lt;A href="http://blogs.splunk.com/2011/07/19/the-naughty-bits-how-to-splunk-binary-logfiles/"&gt;this blog post.&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 12 Feb 2014 14:20:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-Splunk-to-index-a-file-containing-CICS-output/m-p/147676#M185335</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2014-02-12T14:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get Splunk to index a file containing CICS output (ebcdic)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-Splunk-to-index-a-file-containing-CICS-output/m-p/147677#M185336</link>
      <description>&lt;P&gt;I've done a bit of EBCDIC in my time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;You will need to decode the EBCDIC and encode in ASCII.&lt;/P&gt;

&lt;P&gt;You might do this in a scripted input or modular input or pre-process the EBCDIC content before sending to Splunk.&lt;/P&gt;

&lt;P&gt;The decoding is trivial in python :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ebcdic_str = '\xc8\xc5\xd3\xd3\xd6'    
print ebcdic_str.decode('EBCDIC-CP-BE').encode('ascii')
#prints out HELLO
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Feb 2014 07:40:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-Splunk-to-index-a-file-containing-CICS-output/m-p/147677#M185336</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2014-02-13T07:40:00Z</dc:date>
    </item>
  </channel>
</rss>

