<?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: use eval to return field that is not null? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/use-eval-to-return-field-that-is-not-null/m-p/73763#M18489</link>
    <description>&lt;P&gt;I guess the separating comma is missing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval new_field=if(field1!="NULL","field1--".value1."field2--".value2, field2) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Jun 2012 12:55:34 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2012-06-13T12:55:34Z</dc:date>
    <item>
      <title>use eval to return field that is not null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/use-eval-to-return-field-that-is-not-null/m-p/73762#M18488</link>
      <description>&lt;P&gt;i working on a query to display fields with data others than the string "NULL".. &lt;BR /&gt;
and i am trying to use eval.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval new_field=if(field1 !="NULL" "field1--".value1."field2--".value2, field2) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then continue for the next eval.. then pipe to next eval.&lt;/P&gt;

&lt;P&gt;However, i cannot get the result out.. is it my syntax error? &lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2012 01:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/use-eval-to-return-field-that-is-not-null/m-p/73762#M18488</guid>
      <dc:creator>sg5258</dc:creator>
      <dc:date>2012-06-13T01:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: use eval to return field that is not null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/use-eval-to-return-field-that-is-not-null/m-p/73763#M18489</link>
      <description>&lt;P&gt;I guess the separating comma is missing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval new_field=if(field1!="NULL","field1--".value1."field2--".value2, field2) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2012 12:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/use-eval-to-return-field-that-is-not-null/m-p/73763#M18489</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-06-13T12:55:34Z</dc:date>
    </item>
  </channel>
</rss>

