<?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: Funkyness with Eval in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Funkyness-with-Eval/m-p/175350#M50328</link>
    <description>&lt;P&gt;perhaps quotation marks around "Running"?&lt;BR /&gt;
It may be looking for the field named Running.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2014 20:51:34 GMT</pubDate>
    <dc:creator>aelliott</dc:creator>
    <dc:date>2014-03-05T20:51:34Z</dc:date>
    <item>
      <title>Funkyness with Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Funkyness-with-Eval/m-p/175348#M50326</link>
      <description>&lt;P&gt;SO I am using an EVAL command in one of my searches in order to name process state as "OK" or "DOWN".  This is my Query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=WMI:Service Name=VMTools | dedup host,Name | eval State = if(State == Running, "OK","DOWN") | table _time,host,Name,State
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I do I get the process is down, even if it's running. Please take a look at the image:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://answers.splunk.com//storage/DOWN.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Now when I remove the "EVAL" Statement in the query above, it looks just fine. This is the query I am using: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=WMI:Service Name=VMTools | dedup host,Name | table _time,host,Name,State
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the image for the results no less than 1 minute after the previous image:&lt;BR /&gt;
&lt;IMG src="http://answers.splunk.com//storage/Running.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I am just wondering if I am doing something wrong?  I checked the documentation, but I haven't seen this behavior before. I've been looking at this for awhile, and I'm wondering if there is a simple syntax error i'm overlooking? &lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 20:46:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Funkyness-with-Eval/m-p/175348#M50326</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2014-03-05T20:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Funkyness with Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Funkyness-with-Eval/m-p/175349#M50327</link>
      <description>&lt;P&gt;Running a search on every service on that machine WITH the EVAL statement, it shows every service as "DOWN".&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 20:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Funkyness-with-Eval/m-p/175349#M50327</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2014-03-05T20:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Funkyness with Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Funkyness-with-Eval/m-p/175350#M50328</link>
      <description>&lt;P&gt;perhaps quotation marks around "Running"?&lt;BR /&gt;
It may be looking for the field named Running.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 20:51:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Funkyness-with-Eval/m-p/175350#M50328</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-03-05T20:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Funkyness with Eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Funkyness-with-Eval/m-p/175351#M50329</link>
      <description>&lt;P&gt;Oh... My... God..... I feel completely inadequate. Thank you very much sir!&lt;/P&gt;

&lt;P&gt;so long... everything looks the same!!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 20:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Funkyness-with-Eval/m-p/175351#M50329</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2014-03-05T20:59:41Z</dc:date>
    </item>
  </channel>
</rss>

