<?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: splunking hex-based log events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/splunking-hex-based-log-events/m-p/62836#M12568</link>
    <description>&lt;P&gt;You can not do the conversion at search time. Data presented to Splunk at index time must be text data, as Splunk fundamentally indexes text.&lt;/P&gt;

&lt;P&gt;There is currently (4.1.5) no support for creating your own pipeline to insert between the file monitor and the rest of the Splunk indexing queue. The recommended solution currently is either:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Preprocess your binary data and write it to text files, and provide the files to Splunk via either the &lt;CODE&gt;monitor&lt;/CODE&gt; or &lt;CODE&gt;batch&lt;/CODE&gt; inputs.&lt;/LI&gt;
&lt;LI&gt;Create your own scripted input that does whatever it needs to do to generate text output and writes it to standard output. It does not matter what this is written in. Splunk will simply call the program and index whatever comes from its standard output stream. If you are trying to convert files, &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Unfortunately both solutions have the disadvantage that you will have to code all file-tracking logic on your own in your program, rather than being able to use the Splunk file input monitor to do this.&lt;/P&gt;</description>
    <pubDate>Sun, 03 Oct 2010 22:54:14 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-10-03T22:54:14Z</dc:date>
    <item>
      <title>splunking hex-based log events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunking-hex-based-log-events/m-p/62835#M12567</link>
      <description>&lt;P&gt;I have log files from a custom app we wrote that is entirely in hex.&lt;/P&gt;

&lt;P&gt;To splunk it, I understand I might be able to create a custom command that converts hex-to-ascii and then pipe to it at search time and then pipe again  to "search some ascii terms"&lt;/P&gt;

&lt;P&gt;Could I also, though, create a custom hex-to-ascii module or component and insert it into pipeline.xml after input step and before the indexing step? I believe that approach was supported in Splunk v2.x or maybe it was v3.x.&lt;/P&gt;

&lt;P&gt;Also, does that component need to be written in C/C++ or can it be a script instead?  &lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2010 23:16:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunking-hex-based-log-events/m-p/62835#M12567</guid>
      <dc:creator>highiqboy</dc:creator>
      <dc:date>2010-10-02T23:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: splunking hex-based log events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunking-hex-based-log-events/m-p/62836#M12568</link>
      <description>&lt;P&gt;You can not do the conversion at search time. Data presented to Splunk at index time must be text data, as Splunk fundamentally indexes text.&lt;/P&gt;

&lt;P&gt;There is currently (4.1.5) no support for creating your own pipeline to insert between the file monitor and the rest of the Splunk indexing queue. The recommended solution currently is either:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Preprocess your binary data and write it to text files, and provide the files to Splunk via either the &lt;CODE&gt;monitor&lt;/CODE&gt; or &lt;CODE&gt;batch&lt;/CODE&gt; inputs.&lt;/LI&gt;
&lt;LI&gt;Create your own scripted input that does whatever it needs to do to generate text output and writes it to standard output. It does not matter what this is written in. Splunk will simply call the program and index whatever comes from its standard output stream. If you are trying to convert files, &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Unfortunately both solutions have the disadvantage that you will have to code all file-tracking logic on your own in your program, rather than being able to use the Splunk file input monitor to do this.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2010 22:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunking-hex-based-log-events/m-p/62836#M12568</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-10-03T22:54:14Z</dc:date>
    </item>
  </channel>
</rss>

