<?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: How to round search result (Miliseconds)? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387548#M47201</link>
    <description>&lt;P&gt;Please look at my answer.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jul 2019 00:29:19 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2019-07-14T00:29:19Z</dc:date>
    <item>
      <title>How to round search result (Miliseconds)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387544#M47197</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;

&lt;P&gt;with Google I already found numerous forum contributions to this topic - but unfortunately none worked.&lt;/P&gt;

&lt;P&gt;I want to round a result (avg_ping in miliseconds) to whole numbers.&lt;/P&gt;

&lt;P&gt;I tried that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="main" source="ping" | timechart latest(avg_ping) by dest | eval avg_ping = round(avg_ping,0)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the result is unfortunately still not rounded: &lt;STRONG&gt;21.535&lt;/STRONG&gt;   &lt;/P&gt;

&lt;P&gt;Help is very welcome!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 13:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387544#M47197</guid>
      <dc:creator>tobi2k</dc:creator>
      <dc:date>2019-07-13T13:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to round search result (Miliseconds)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387545#M47198</link>
      <description>&lt;P&gt;avg_ping does not exist. Please check the field name in the result of avg_ping.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="main" source="ping" | timechart latest(avg_ping) by dest 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is easy if you do it first.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="main" source="ping" |eval avg_ping=round(avg_ping,0)
| timechart latest(avg_ping) by dest 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387545#M47198</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2020-09-30T01:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to round search result (Miliseconds)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387546#M47199</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;

&lt;P&gt;The query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="main" source="ping" | timechart latest(avg_ping) by dest 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;results in:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   server1.net server2.net server3.net
2019-07-12 17:00:00 33.948  65.14   19.13
2019-07-12 17:30:00 22.779  51.48   21.58
2019-07-12 18:00:00 20.194  69.65   17.91
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Its not clear for me how to address the field name for rounding.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 15:18:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387546#M47199</guid>
      <dc:creator>tobi2k</dc:creator>
      <dc:date>2019-07-13T15:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to round search result (Miliseconds)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387547#M47200</link>
      <description>&lt;P&gt;Add as “as avg_ping” to your time chart command, or reference the results as 'latest(avg_ping)'&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timechart latest(avg_ping) as avg_ping
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;'latest(avg_ping)' = round('latest(avg_ping)',0)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387547#M47200</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2020-09-30T01:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to round search result (Miliseconds)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387548#M47201</link>
      <description>&lt;P&gt;Please look at my answer.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 00:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387548#M47201</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-07-14T00:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to round search result (Miliseconds)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387549#M47202</link>
      <description>&lt;P&gt;Think that yould help you?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/667635/how-to-round-a-millisecond-output.html" target="_blank"&gt;https://answers.splunk.com/answers/667635/how-to-round-a-millisecond-output.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;have to set "eval avg_ping=round(avg_ping,0)" to "eval avg_ping=round(avg_ping,&lt;STRONG&gt;2&lt;/STRONG&gt;)"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:22:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-round-search-result-Miliseconds/m-p/387549#M47202</guid>
      <dc:creator>pgerke_cc</dc:creator>
      <dc:date>2020-09-30T01:22:26Z</dc:date>
    </item>
  </channel>
</rss>

