<?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: Search Macro problems, eval and case in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-Macro-problems-eval-and-case/m-p/88323#M22590</link>
    <description>&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval RTime = case ( RunTime &amp;lt; 1, 0, 1==1, 1 )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Nov 2010 23:52:39 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2010-11-15T23:52:39Z</dc:date>
    <item>
      <title>Search Macro problems, eval and case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Macro-problems-eval-and-case/m-p/88322#M22589</link>
      <description>&lt;P&gt;I am trying to get a case to work with the eval statement inside of a macro and have been unsuccessfull.&lt;/P&gt;

&lt;P&gt;I can get this to work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval RTime = round(RunTime)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I am unable to get this to work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval RTime = case ( RunTime &amp;lt; 1, 0, 1=1, 1 )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Nov 2010 22:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Macro-problems-eval-and-case/m-p/88322#M22589</guid>
      <dc:creator>fk319</dc:creator>
      <dc:date>2010-11-12T22:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Search Macro problems, eval and case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Macro-problems-eval-and-case/m-p/88323#M22590</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval RTime = case ( RunTime &amp;lt; 1, 0, 1==1, 1 )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Nov 2010 23:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Macro-problems-eval-and-case/m-p/88323#M22590</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-11-15T23:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search Macro problems, eval and case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Macro-problems-eval-and-case/m-p/88324#M22591</link>
      <description>&lt;P&gt;Thanks, but that did not help.  I still get an eval error when I am trying to use the macro.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2010 04:33:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Macro-problems-eval-and-case/m-p/88324#M22591</guid>
      <dc:creator>fk319</dc:creator>
      <dc:date>2010-11-16T04:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search Macro problems, eval and case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Macro-problems-eval-and-case/m-p/88325#M22592</link>
      <description>&lt;P&gt;Could you please post the full macro definition (is it an "iseval" macro), and an example of how you are trying to apply it?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2011 05:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Macro-problems-eval-and-case/m-p/88325#M22592</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-03-08T05:32:23Z</dc:date>
    </item>
  </channel>
</rss>

