<?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: percent of sum over total elapsed time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/percent-of-sum-over-total-elapsed-time/m-p/146540#M185235</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;
Could you try to use the following search conditions?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"site="
| stats sum(downTimeInSec) AS TotalDowmTimeInSec by site
| eval ratio = round(TotalDownTimeInSec * 100 / (3*24*60*60), 5)."%"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope it helps you.&lt;BR /&gt;&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jul 2014 05:00:28 GMT</pubDate>
    <dc:creator>Suda</dc:creator>
    <dc:date>2014-07-17T05:00:28Z</dc:date>
    <item>
      <title>percent of sum over total elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percent-of-sum-over-total-elapsed-time/m-p/146537#M185232</link>
      <description>&lt;P&gt;I'd like to write a report in Splunk that would give me sum(downTimeInSec) as a percentage of total time, 3 days.&lt;/P&gt;

&lt;P&gt;The search, "site=" |chart sum(downTimeInSec) by site, gives me this&lt;BR /&gt;
63660-Sao Paulo Campinas     736&lt;/P&gt;

&lt;P&gt;I'd like to have something like this:&lt;/P&gt;

&lt;P&gt;63660-SaoPauloCampinas        736                                .28394%&lt;BR /&gt;&lt;BR /&gt;
where the 3rd column is calculated as follows ((736 sec * 100%)/(3 days*86400 sec/day))&lt;BR /&gt;
Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 04:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percent-of-sum-over-total-elapsed-time/m-p/146537#M185232</guid>
      <dc:creator>SamPask</dc:creator>
      <dc:date>2014-07-17T04:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: percent of sum over total elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percent-of-sum-over-total-elapsed-time/m-p/146538#M185233</link>
      <description>&lt;P&gt;here's my event line for the question&lt;BR /&gt;
7/16/14 10:28:45.000 AM  Jul 16 10:28:45 10.251.250.222 2014-7-16T10:28:45-08:00 source 14 site=Sao Paulo Campinas, downTimeInSec=736, startTime=2014-07-16T10:16:29-08:00, endTime=2014-7-16T10:28:45-08:00&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 04:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percent-of-sum-over-total-elapsed-time/m-p/146538#M185233</guid>
      <dc:creator>SamPask</dc:creator>
      <dc:date>2014-07-17T04:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: percent of sum over total elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percent-of-sum-over-total-elapsed-time/m-p/146539#M185234</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;You could use like that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=downtimes | addinfo | eval reportDuration=info_max_time-info_min_time | stats sum(downTimeInSec) AS totalDowntime, values(reportDuration) AS reportDuration by site | eval percentDown=(totalDowntime*100)/reportDuration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the addinfo will add some information related to your search, and now you can use it. You report will show the % based on the period you searched.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 04:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percent-of-sum-over-total-elapsed-time/m-p/146539#M185234</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2014-07-17T04:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: percent of sum over total elapsed time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percent-of-sum-over-total-elapsed-time/m-p/146540#M185235</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;
Could you try to use the following search conditions?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"site="
| stats sum(downTimeInSec) AS TotalDowmTimeInSec by site
| eval ratio = round(TotalDownTimeInSec * 100 / (3*24*60*60), 5)."%"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope it helps you.&lt;BR /&gt;&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 05:00:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percent-of-sum-over-total-elapsed-time/m-p/146540#M185235</guid>
      <dc:creator>Suda</dc:creator>
      <dc:date>2014-07-17T05:00:28Z</dc:date>
    </item>
  </channel>
</rss>

