<?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 Lookup table: Show one or another output in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-Show-one-or-another-output/m-p/34365#M7373</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;Code,Description1,Description2
0,ok,successful
1,error,failure
3,not_connected,not_found
6,unsync,network_error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OK, this is a piece of my .csv file. I have everithing correctly configured in transforms.conf and props.conf.&lt;/P&gt;

&lt;P&gt;I need to show in a table the right message to the Code, depending on the value of another field.&lt;BR /&gt;
For example, the field Key contains only values Blue and Red. If Key is Blue, show Description1; if Key is Red, show Description2.&lt;/P&gt;

&lt;P&gt;Continuing with the example, this is what I would want to see in the table while searching:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Code ----------- Key ------------ Description
  0              Red              successful
  1              Red              failure
  0              Blue             ok
  6              Red              network_error
  3              Blue             not_connected
  1              Blue             error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any way to do that?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2013 19:37:43 GMT</pubDate>
    <dc:creator>javo</dc:creator>
    <dc:date>2013-02-15T19:37:43Z</dc:date>
    <item>
      <title>Lookup table: Show one or another output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-Show-one-or-another-output/m-p/34365#M7373</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Code,Description1,Description2
0,ok,successful
1,error,failure
3,not_connected,not_found
6,unsync,network_error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OK, this is a piece of my .csv file. I have everithing correctly configured in transforms.conf and props.conf.&lt;/P&gt;

&lt;P&gt;I need to show in a table the right message to the Code, depending on the value of another field.&lt;BR /&gt;
For example, the field Key contains only values Blue and Red. If Key is Blue, show Description1; if Key is Red, show Description2.&lt;/P&gt;

&lt;P&gt;Continuing with the example, this is what I would want to see in the table while searching:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Code ----------- Key ------------ Description
  0              Red              successful
  1              Red              failure
  0              Blue             ok
  6              Red              network_error
  3              Blue             not_connected
  1              Blue             error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any way to do that?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 19:37:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-Show-one-or-another-output/m-p/34365#M7373</guid>
      <dc:creator>javo</dc:creator>
      <dc:date>2013-02-15T19:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup table: Show one or another output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-Show-one-or-another-output/m-p/34366#M7374</link>
      <description>&lt;P&gt;You should be able to achieve this with a combination of eval and case, something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval Description = case(Key=="Red",Description1,Key=="Blue",Description2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Feb 2013 00:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-Show-one-or-another-output/m-p/34366#M7374</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-02-16T00:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup table: Show one or another output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-Show-one-or-another-output/m-p/34367#M7375</link>
      <description>&lt;P&gt;I was tying that with eval Description = if(Key=Red,Description1,Description2)... How could I not see the '==' noob mistake.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 14:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-Show-one-or-another-output/m-p/34367#M7375</guid>
      <dc:creator>javo</dc:creator>
      <dc:date>2013-02-18T14:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup table: Show one or another output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-Show-one-or-another-output/m-p/34368#M7376</link>
      <description>&lt;P&gt;Javo,&lt;BR /&gt;
When the student is ready, the lesson appears. I have found this to be true for me, and others, over and over again. It seems that "noop" is actually an acronym for "Not Open to Opportunities Presently"!  (;-&amp;gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 17:13:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-Show-one-or-another-output/m-p/34368#M7376</guid>
      <dc:creator>rgcurry</dc:creator>
      <dc:date>2013-02-18T17:13:59Z</dc:date>
    </item>
  </channel>
</rss>

