<?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 convert ASCII characters to their Hex values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-ASCII-characters-to-their-Hex-values/m-p/481390#M193083</link>
    <description>&lt;P&gt;It is too late; it went in wrong.  Fix incoming data like this:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Configurecharactersetencoding"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Configurecharactersetencoding&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Mar 2020 07:23:11 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2020-03-03T07:23:11Z</dc:date>
    <item>
      <title>How to convert ASCII characters to their Hex values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-ASCII-characters-to-their-Hex-values/m-p/481389#M193082</link>
      <description>&lt;P&gt;There are plenty of answers to the question of how to convert Hex into ASCII using a combination of rex/replace and urldecode.&lt;/P&gt;

&lt;P&gt;However, I am looking to do the opposite.  I have binary data in a field and I would like to convert it to hex values.&lt;/P&gt;

&lt;P&gt;Sample data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;��&amp;#27;&amp;#23;��&amp;#3;$P/�Dl ���&amp;#15;�&amp;#8;��E&amp;#2;��4&amp;#2;K@��v&amp;#6;���3&amp;gt;n� �
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I do not simply want to strip this data because I actually would like to do something with it once it's been converted.&lt;/P&gt;

&lt;P&gt;I also would like to do it preferably using an  &lt;CODE&gt;eval&lt;/CODE&gt; statement so I can create a field calculation based on this.&lt;/P&gt;

&lt;P&gt;Any thoughts or ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 00:40:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-ASCII-characters-to-their-Hex-values/m-p/481389#M193082</guid>
      <dc:creator>datorres</dc:creator>
      <dc:date>2020-03-03T00:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert ASCII characters to their Hex values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-ASCII-characters-to-their-Hex-values/m-p/481390#M193083</link>
      <description>&lt;P&gt;It is too late; it went in wrong.  Fix incoming data like this:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Configurecharactersetencoding"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Configurecharactersetencoding&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 07:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-ASCII-characters-to-their-Hex-values/m-p/481390#M193083</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-03T07:23:11Z</dc:date>
    </item>
  </channel>
</rss>

