<?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 Field transformation in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-transformation/m-p/90592#M23276</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;

&lt;P&gt;I have this following log in Splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;RS:D2T,PAN:1/1,Req:fr18126,User:a169805,TKN:g00e29dfd883effecba,H:W60080,SN:UTKBENCH,RC:000,TIME:180ms
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I create a field RC which correspond and now I want to associate to each value of RC a value in splunk. For example I want to say where RC=000 the value is "ok". I know that I can add in my search "eval serieRC=case("RC=000,"ok",...)" but there are a lot of values and if there are a new value later, I have to modify all my search which take account this field to associate a new value. So I want to know if there is an other solution to this problem. I saw that there is "field transformation" but I don't understand very well how associate a value X to a value Y which is in the log for the field "RC".&lt;/P&gt;

&lt;P&gt;Thanks by advance to your help.&lt;/P&gt;

&lt;P&gt;Laura&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jul 2012 13:21:52 GMT</pubDate>
    <dc:creator>LauraBre</dc:creator>
    <dc:date>2012-07-04T13:21:52Z</dc:date>
    <item>
      <title>Field transformation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-transformation/m-p/90592#M23276</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;

&lt;P&gt;I have this following log in Splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;RS:D2T,PAN:1/1,Req:fr18126,User:a169805,TKN:g00e29dfd883effecba,H:W60080,SN:UTKBENCH,RC:000,TIME:180ms
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I create a field RC which correspond and now I want to associate to each value of RC a value in splunk. For example I want to say where RC=000 the value is "ok". I know that I can add in my search "eval serieRC=case("RC=000,"ok",...)" but there are a lot of values and if there are a new value later, I have to modify all my search which take account this field to associate a new value. So I want to know if there is an other solution to this problem. I saw that there is "field transformation" but I don't understand very well how associate a value X to a value Y which is in the log for the field "RC".&lt;/P&gt;

&lt;P&gt;Thanks by advance to your help.&lt;/P&gt;

&lt;P&gt;Laura&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2012 13:21:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-transformation/m-p/90592#M23276</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-07-04T13:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field transformation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-transformation/m-p/90593#M23277</link>
      <description>&lt;P&gt;The answer to your problem is the use of lookup tables. There is an excellent example/tutorial on their use here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/User/Fieldlookupstutorial"&gt;http://docs.splunk.com/Documentation/Splunk/latest/User/Fieldlookupstutorial&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;This way you can just add new values to the lookup files later without having to change your saved search.&lt;/P&gt;

&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2012 13:52:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-transformation/m-p/90593#M23277</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2012-07-04T13:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field transformation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-transformation/m-p/90594#M23278</link>
      <description>&lt;P&gt;Thx very much for your answer. I look this and try to use that.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 08:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-transformation/m-p/90594#M23278</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-07-05T08:55:28Z</dc:date>
    </item>
  </channel>
</rss>

