<?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 do I convert my decimal field to a hex value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-my-decimal-field-to-a-hex-value/m-p/51116#M12301</link>
    <description>&lt;P&gt;Should've read the documentation a little closer.  Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 03 Dec 2012 18:51:10 GMT</pubDate>
    <dc:creator>anssntaco</dc:creator>
    <dc:date>2012-12-03T18:51:10Z</dc:date>
    <item>
      <title>How do I convert my decimal field to a hex value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-my-decimal-field-to-a-hex-value/m-p/51114#M12299</link>
      <description>&lt;P&gt;Very similar to &lt;A href="http://splunk-base.splunk.com/answers/7688/how-do-i-convert-my-hexoct-field-into-a-decimal-value"&gt;http://splunk-base.splunk.com/answers/7688/how-do-i-convert-my-hexoct-field-into-a-decimal-value&lt;/A&gt;... but reverse.   I have a field in decimal value, and would like to convert it to hex.  &lt;/P&gt;

&lt;P&gt;Doesn't look like there's an eval's "tohex()" equivalent to "tonumber()".   Has anyone found a way to do this?&lt;/P&gt;

&lt;P&gt;BTW, the internets have mentioned formulas that exist for this (e.g. &lt;A href="http://www.webelfin.com/webelfindesign/dechex.html"&gt;http://www.webelfin.com/webelfindesign/dechex.html&lt;/A&gt; ).  I'd rather not have to write my own search functions (not sure if it's even possible to write a custom tohex() function for eval), though I'm worried that may be the only option.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Dec 2012 02:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-my-decimal-field-to-a-hex-value/m-p/51114#M12299</guid>
      <dc:creator>anssntaco</dc:creator>
      <dc:date>2012-12-01T02:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert my decimal field to a hex value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-my-decimal-field-to-a-hex-value/m-p/51115#M12300</link>
      <description>&lt;P&gt;This is very easy, though it isn't intuitive!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval yourHex = tostring(yourNumber,"hex")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Dec 2012 08:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-my-decimal-field-to-a-hex-value/m-p/51115#M12300</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-12-01T08:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert my decimal field to a hex value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-my-decimal-field-to-a-hex-value/m-p/51116#M12301</link>
      <description>&lt;P&gt;Should've read the documentation a little closer.  Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2012 18:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-my-decimal-field-to-a-hex-value/m-p/51116#M12301</guid>
      <dc:creator>anssntaco</dc:creator>
      <dc:date>2012-12-03T18:51:10Z</dc:date>
    </item>
  </channel>
</rss>

