<?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 Quick Question: eval in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Quick-Question-eval/m-p/18617#M2726</link>
    <description>&lt;P&gt;I have a chart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Los Angeles   New York   Boston   Washington D.C.   Total
5             3                   2                 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and &lt;/P&gt;

&lt;P&gt;... | eval "x"='New York'+'Washington D.C'&lt;/P&gt;

&lt;P&gt;returns x=5. However,&lt;/P&gt;

&lt;P&gt;... | eval "x"='New York'+'Boston'+'Washington D.C'&lt;/P&gt;

&lt;P&gt;returns an empty value, i.e. x=&lt;/P&gt;

&lt;P&gt;How do I get around this problem where 'Boston' is empty?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2011 22:25:22 GMT</pubDate>
    <dc:creator>wyang6</dc:creator>
    <dc:date>2011-05-27T22:25:22Z</dc:date>
    <item>
      <title>Quick Question: eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Quick-Question-eval/m-p/18617#M2726</link>
      <description>&lt;P&gt;I have a chart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Los Angeles   New York   Boston   Washington D.C.   Total
5             3                   2                 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and &lt;/P&gt;

&lt;P&gt;... | eval "x"='New York'+'Washington D.C'&lt;/P&gt;

&lt;P&gt;returns x=5. However,&lt;/P&gt;

&lt;P&gt;... | eval "x"='New York'+'Boston'+'Washington D.C'&lt;/P&gt;

&lt;P&gt;returns an empty value, i.e. x=&lt;/P&gt;

&lt;P&gt;How do I get around this problem where 'Boston' is empty?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2011 22:25:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Quick-Question-eval/m-p/18617#M2726</guid>
      <dc:creator>wyang6</dc:creator>
      <dc:date>2011-05-27T22:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Question: eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Quick-Question-eval/m-p/18618#M2727</link>
      <description>&lt;P&gt;use the &lt;CODE&gt;ifisnull()&lt;/CODE&gt; or &lt;CODE&gt;coalesce()&lt;/CODE&gt; function:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval "x"=coalesce('New York',0)+coalesce('Boston',0)+ifisnull('Washington D.C',0,'Washington D.C')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or you could use the &lt;CODE&gt;| fillnull&lt;/CODE&gt; search command.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2011 22:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Quick-Question-eval/m-p/18618#M2727</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-05-27T22:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Question: eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Quick-Question-eval/m-p/18619#M2728</link>
      <description>&lt;P&gt;I had &lt;/P&gt;

&lt;P&gt;... | fillnull value=0 'Los Angeles' 'New York' 'Boston' 'Washington D.C.' | eval x='New York'+'Boston'+'Washington D.C'&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2011 22:48:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Quick-Question-eval/m-p/18619#M2728</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2011-05-27T22:48:01Z</dc:date>
    </item>
  </channel>
</rss>

