<?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: Converting Numerical value(s) to Character(s) or String(s) - Oracle SQL to Splunk Languages - Part1 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60758#M14933</link>
    <description>&lt;P&gt;@ richgalloway: I got it wrong. Not char(13) but chr(13)...&lt;/P&gt;</description>
    <pubDate>Thu, 13 Dec 2012 01:16:00 GMT</pubDate>
    <dc:creator>syusjk6</dc:creator>
    <dc:date>2012-12-13T01:16:00Z</dc:date>
    <item>
      <title>Converting Numerical value(s) to Character(s) or String(s) - Oracle SQL to Splunk Languages - Part1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60754#M14929</link>
      <description>&lt;P&gt;Hi, I am looking for &lt;STRONG&gt;Splunk search languages&lt;/STRONG&gt; that might be corresponding to the following SQL: &lt;STRONG&gt;CHAR(13)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Are there any possible ways to get it done?&lt;BR /&gt;
BTW, CHAR(13) converts 13 to the character corresponding to number 13. &lt;BR /&gt;
(Oh, correct me if I understood the description of CHAR(13) right.)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 07:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60754#M14929</guid>
      <dc:creator>syusjk6</dc:creator>
      <dc:date>2012-12-12T07:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Numerical value(s) to Character(s) or String(s) - Oracle SQL to Splunk Languages - Part1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60755#M14930</link>
      <description>&lt;P&gt;Would you please explain what you want to do with char(13)?  Have you tried "\r"?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 13:53:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60755#M14930</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2012-12-12T13:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Numerical value(s) to Character(s) or String(s) - Oracle SQL to Splunk Languages - Part1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60756#M14931</link>
      <description>&lt;P&gt;and a conversion can be done with the rex command &lt;BR /&gt;
example to convert every a to b.&lt;BR /&gt;
&lt;CODE&gt;mysearch | rex mode=sed "s/a/b/g"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 14:46:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60756#M14931</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-12-12T14:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Numerical value(s) to Character(s) or String(s) - Oracle SQL to Splunk Languages - Part1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60757#M14932</link>
      <description>&lt;P&gt;I think you want something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=mydata | rex "SQL: CHAR(?&amp;lt;char&amp;gt;\d)" | stats values(char)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Dec 2012 19:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60757#M14932</guid>
      <dc:creator>Kate_Lawrence-G</dc:creator>
      <dc:date>2012-12-12T19:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Numerical value(s) to Character(s) or String(s) - Oracle SQL to Splunk Languages - Part1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60758#M14933</link>
      <description>&lt;P&gt;@ richgalloway: I got it wrong. Not char(13) but chr(13)...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 01:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60758#M14933</guid>
      <dc:creator>syusjk6</dc:creator>
      <dc:date>2012-12-13T01:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Numerical value(s) to Character(s) or String(s) - Oracle SQL to Splunk Languages - Part1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60759#M14934</link>
      <description>&lt;P&gt;I put some sample oracle sql on another titled by "Oracle SQL to Splunk Languages - Part 1" with respect to this question. Please refer to it.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 01:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60759#M14934</guid>
      <dc:creator>syusjk6</dc:creator>
      <dc:date>2012-12-13T01:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Numerical value(s) to Character(s) or String(s) - Oracle SQL to Splunk Languages - Part1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60760#M14935</link>
      <description>&lt;P&gt;Thanks. Would you refer to my question put on another title, "Oracle SQL to Splunk Languages - Part1" ?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 01:18:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60760#M14935</guid>
      <dc:creator>syusjk6</dc:creator>
      <dc:date>2012-12-13T01:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Numerical value(s) to Character(s) or String(s) - Oracle SQL to Splunk Languages - Part1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60761#M14936</link>
      <description>&lt;P&gt;Hi Sysujk6,&lt;/P&gt;

&lt;P&gt;Title updated.&lt;BR /&gt;
If the answer from Ayn solved your problem, do you mind checking the accept button ?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 16:58:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60761#M14936</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-12-13T16:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Numerical value(s) to Character(s) or String(s) - Oracle SQL to Splunk Languages - Part1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60762#M14937</link>
      <description>&lt;P&gt;If I understand your question correctly you are looking for a character value for the number that is inside the CHAR parentheses?&lt;/P&gt;

&lt;P&gt;To do that you would need to use the rex I mentioned earlier to get it as a field and then use a lookup table to find the resulting translation. Splunk doesn't have a function for pulling this information directly.&lt;/P&gt;

&lt;P&gt;So something like this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;lookup.csv 
number, ascii 
13, "carriage return"

sourcetype=mydata | rex "SQL: CHAR(?&amp;lt;char&amp;gt;\d)" | fields char | lookup chart AS number OUTPUT ascii AS "character"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will take the numeric values you see and translate them to the ascii values you are looking for.&lt;/P&gt;

&lt;P&gt;You will have to create the lookup table, but that is just a csv that follows the pattern that laid out.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 16:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-Numerical-value-s-to-Character-s-or-String-s-Oracle/m-p/60762#M14937</guid>
      <dc:creator>Kate_Lawrence-G</dc:creator>
      <dc:date>2012-12-13T16:58:45Z</dc:date>
    </item>
  </channel>
</rss>

