<?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 How do I convert values returned to another format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-values-returned-to-another-format/m-p/154312#M185667</link>
    <description>&lt;P&gt;Is there a way when creating a table of syslog results that I can convert a value such as "17" to "udp" based on a set of predefined mappings, i.e. 1=icmp,6=tcp,17=udp,47=gre,50=esp?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 06 May 2014 18:15:56 GMT</pubDate>
    <dc:creator>djconroy</dc:creator>
    <dc:date>2014-05-06T18:15:56Z</dc:date>
    <item>
      <title>How do I convert values returned to another format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-values-returned-to-another-format/m-p/154312#M185667</link>
      <description>&lt;P&gt;Is there a way when creating a table of syslog results that I can convert a value such as "17" to "udp" based on a set of predefined mappings, i.e. 1=icmp,6=tcp,17=udp,47=gre,50=esp?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 18:15:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-values-returned-to-another-format/m-p/154312#M185667</guid>
      <dc:creator>djconroy</dc:creator>
      <dc:date>2014-05-06T18:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert values returned to another format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-values-returned-to-another-format/m-p/154313#M185668</link>
      <description>&lt;P&gt;You're probably looking for something like this:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/Knowledge/Addfieldsfromexternaldatasources"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.3/Knowledge/Addfieldsfromexternaldatasources&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You'll want to define a CSV with the protocol number as one column, and the protocol name as the other. You can then use that in a lookup something like (not exact as you didn't provide details on your logs):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=my-firewall | lookup protocols protocol_number OUTPUT protocol_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can see more on using the lookup command here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1/SearchReference/Lookup"&gt;http://docs.splunk.com/Documentation/Splunk/6.1/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 18:31:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-values-returned-to-another-format/m-p/154313#M185668</guid>
      <dc:creator>mcmaster</dc:creator>
      <dc:date>2014-05-06T18:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert values returned to another format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-values-returned-to-another-format/m-p/154314#M185669</link>
      <description>&lt;P&gt;Lookups comes very handy for situations where additional static information to be added to result. Also, if the no of mapping is small and its to be used in only 1-2 places, you can use "eval-case" command to define those. [lookups are easily scalable though]&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 18:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-convert-values-returned-to-another-format/m-p/154314#M185669</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-06T18:39:46Z</dc:date>
    </item>
  </channel>
</rss>

