<?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 how to limit percent results to 2 decimal places in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-limit-percent-results-to-2-decimal-places/m-p/152758#M185583</link>
    <description>&lt;P&gt;I am using the below query to form a table, but the percent values have up to 6 decimal places.&lt;BR /&gt;
Can you please let me know how to limit them to 2 decimal places?&lt;/P&gt;

&lt;P&gt;Query:&lt;BR /&gt;
index=jms_logs osb_Service="CRMCaseService.Services.CRMCaseService" | eventstats count by Reason | top Reason&lt;/P&gt;

&lt;P&gt;Results:&lt;BR /&gt;
Reason                                                        count     percent&lt;BR /&gt;
Case(s) updated successfully                                   144  96.000000&lt;BR /&gt;
Could not update case since Case not found in salesforce    5   3.333333&lt;BR /&gt;
Case Found but the contact information does not match           1   0.666667 &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:08:28 GMT</pubDate>
    <dc:creator>edookati</dc:creator>
    <dc:date>2020-09-28T17:08:28Z</dc:date>
    <item>
      <title>how to limit percent results to 2 decimal places</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-limit-percent-results-to-2-decimal-places/m-p/152758#M185583</link>
      <description>&lt;P&gt;I am using the below query to form a table, but the percent values have up to 6 decimal places.&lt;BR /&gt;
Can you please let me know how to limit them to 2 decimal places?&lt;/P&gt;

&lt;P&gt;Query:&lt;BR /&gt;
index=jms_logs osb_Service="CRMCaseService.Services.CRMCaseService" | eventstats count by Reason | top Reason&lt;/P&gt;

&lt;P&gt;Results:&lt;BR /&gt;
Reason                                                        count     percent&lt;BR /&gt;
Case(s) updated successfully                                   144  96.000000&lt;BR /&gt;
Could not update case since Case not found in salesforce    5   3.333333&lt;BR /&gt;
Case Found but the contact information does not match           1   0.666667 &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:08:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-limit-percent-results-to-2-decimal-places/m-p/152758#M185583</guid>
      <dc:creator>edookati</dc:creator>
      <dc:date>2020-09-28T17:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to limit percent results to 2 decimal places</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-limit-percent-results-to-2-decimal-places/m-p/152759#M185584</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=jms_logs osb_Service="CRMCaseService.Services.CRMCaseService" | eventstats count by Reason | top Reason | eval percent=round(percent,2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jul 2014 17:18:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-limit-percent-results-to-2-decimal-places/m-p/152759#M185584</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-22T17:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to limit percent results to 2 decimal places</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-limit-percent-results-to-2-decimal-places/m-p/152760#M185585</link>
      <description>&lt;P&gt;perfect. It worked.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2014 17:20:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-limit-percent-results-to-2-decimal-places/m-p/152760#M185585</guid>
      <dc:creator>edookati</dc:creator>
      <dc:date>2014-07-22T17:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to limit percent results to 2 decimal places</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-limit-percent-results-to-2-decimal-places/m-p/152761#M185586</link>
      <description>&lt;P&gt;Isn't the &lt;CODE&gt;eventstats&lt;/CODE&gt; obsolete in that search?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2014 17:31:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-limit-percent-results-to-2-decimal-places/m-p/152761#M185586</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-22T17:31:45Z</dc:date>
    </item>
  </channel>
</rss>

