<?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 Panel using Round and Sort in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Panel-using-Round-and-Sort/m-p/208452#M43592</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a dashboard that displays the numerial value of a field called method_duration.&lt;/P&gt;

&lt;P&gt;The value is in ms.&lt;/P&gt;

&lt;P&gt;The search string I have looks like this:&lt;/P&gt;

&lt;P&gt;index=bec_ci_prod ("deploy_status_type=info" "direction=exiting") | sort + method_duration | chart count by method_duration span=10000&lt;/P&gt;

&lt;P&gt;The result from thus is actually as expected. But now I would like to show the method_duration in seconds and not in miliseconds&lt;/P&gt;

&lt;P&gt;I then add this to the search string:&lt;BR /&gt;
| fieldformat method_duration=round(method_duration/1000)&lt;/P&gt;

&lt;P&gt;The result is that when listing the result several of the results now have the same value like 5-6 results showing 0 etc.&lt;/P&gt;

&lt;P&gt;How could you get Spluk to show all the rounded numbers that end up being 0 in just one result ?&lt;/P&gt;

&lt;P&gt;Also when i try to add the span=10 all the results values are blank but the count remains. I think it has something to do with the first problem where multiple results now sjhow the same value &lt;/P&gt;

&lt;P&gt;Any idea how to solve this ? &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:06:08 GMT</pubDate>
    <dc:creator>hsh</dc:creator>
    <dc:date>2020-09-29T11:06:08Z</dc:date>
    <item>
      <title>Panel using Round and Sort</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Panel-using-Round-and-Sort/m-p/208452#M43592</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a dashboard that displays the numerial value of a field called method_duration.&lt;/P&gt;

&lt;P&gt;The value is in ms.&lt;/P&gt;

&lt;P&gt;The search string I have looks like this:&lt;/P&gt;

&lt;P&gt;index=bec_ci_prod ("deploy_status_type=info" "direction=exiting") | sort + method_duration | chart count by method_duration span=10000&lt;/P&gt;

&lt;P&gt;The result from thus is actually as expected. But now I would like to show the method_duration in seconds and not in miliseconds&lt;/P&gt;

&lt;P&gt;I then add this to the search string:&lt;BR /&gt;
| fieldformat method_duration=round(method_duration/1000)&lt;/P&gt;

&lt;P&gt;The result is that when listing the result several of the results now have the same value like 5-6 results showing 0 etc.&lt;/P&gt;

&lt;P&gt;How could you get Spluk to show all the rounded numbers that end up being 0 in just one result ?&lt;/P&gt;

&lt;P&gt;Also when i try to add the span=10 all the results values are blank but the count remains. I think it has something to do with the first problem where multiple results now sjhow the same value &lt;/P&gt;

&lt;P&gt;Any idea how to solve this ? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:06:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Panel-using-Round-and-Sort/m-p/208452#M43592</guid>
      <dc:creator>hsh</dc:creator>
      <dc:date>2020-09-29T11:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Panel using Round and Sort</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Panel-using-Round-and-Sort/m-p/208453#M43593</link>
      <description>&lt;P&gt;you can use second instead miliseconds inserting an eval command like this before chart command&lt;BR /&gt;
&lt;EM&gt;| eval method_duration=method_duration/1000&lt;/EM&gt;&lt;BR /&gt;
and obviously modifying span.&lt;BR /&gt;
After this you can round your number to the decimals you prefer.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Panel-using-Round-and-Sort/m-p/208453#M43593</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T02:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Panel using Round and Sort</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Panel-using-Round-and-Sort/m-p/208454#M43594</link>
      <description>&lt;P&gt;Maybe, try eval round function - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval method_duration=round(method_duration/1000,3)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Sep 2016 07:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Panel-using-Round-and-Sort/m-p/208454#M43594</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-26T07:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Panel using Round and Sort</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Panel-using-Round-and-Sort/m-p/208455#M43595</link>
      <description>&lt;P&gt;thanks guys that helped with the results &lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 07:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Panel-using-Round-and-Sort/m-p/208455#M43595</guid>
      <dc:creator>hsh</dc:creator>
      <dc:date>2016-09-26T07:33:44Z</dc:date>
    </item>
  </channel>
</rss>

