<?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: eval round in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493162#M137538</link>
    <description>&lt;P&gt;Agreed. It's a nightmare to do the aggregation of the fields with spaces in it. &lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2020 09:21:48 GMT</pubDate>
    <dc:creator>shivanshu1593</dc:creator>
    <dc:date>2020-05-11T09:21:48Z</dc:date>
    <item>
      <title>eval round</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493157#M137533</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;During evaluating round I got the error:&lt;BR /&gt;
|  stats avg(duration) AS "booking average time" by hours&lt;BR /&gt;
| eval "booking average time"=round("booking average time",2)&lt;/P&gt;

&lt;P&gt;Error in 'eval' command: The arguments to the 'round' function are invalid.&lt;/P&gt;

&lt;P&gt;Any ideas? Using inline search gives me the same result. &lt;/P&gt;

&lt;P&gt;thanks&lt;BR /&gt;
Szymon&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 08:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493157#M137533</guid>
      <dc:creator>slipinski</dc:creator>
      <dc:date>2020-05-11T08:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: eval round</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493158#M137534</link>
      <description>&lt;P&gt;May be this might help:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats avg(duration) AS "booking average time" by hours
| eval "booking average time"=round(("booking average time"),2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 May 2020 09:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493158#M137534</guid>
      <dc:creator>shivanshu1593</dc:creator>
      <dc:date>2020-05-11T09:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: eval round</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493159#M137535</link>
      <description>&lt;P&gt;The same result&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 09:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493159#M137535</guid>
      <dc:creator>slipinski</dc:creator>
      <dc:date>2020-05-11T09:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: eval round</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493160#M137536</link>
      <description>&lt;P&gt;Oh my bad. Please try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats avg(eval(round(duration,2))) AS "booking average time" by hours
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 May 2020 09:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493160#M137536</guid>
      <dc:creator>shivanshu1593</dc:creator>
      <dc:date>2020-05-11T09:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: eval round</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493161#M137537</link>
      <description>&lt;P&gt;use &lt;CODE&gt;'&lt;/CODE&gt; not &lt;CODE&gt;"&lt;/CODE&gt;&lt;BR /&gt;
If you want aggregate the fields, do not use the fieldname with spaces.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 09:18:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493161#M137537</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-11T09:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: eval round</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493162#M137538</link>
      <description>&lt;P&gt;Agreed. It's a nightmare to do the aggregation of the fields with spaces in it. &lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 09:21:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493162#M137538</guid>
      <dc:creator>shivanshu1593</dc:creator>
      <dc:date>2020-05-11T09:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: eval round</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493163#M137539</link>
      <description>&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 09:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-round/m-p/493163#M137539</guid>
      <dc:creator>slipinski</dc:creator>
      <dc:date>2020-05-11T09:23:50Z</dc:date>
    </item>
  </channel>
</rss>

