<?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 Calculate percent of missing events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Calculate-percent-of-missing-events/m-p/491465#M194241</link>
    <description>&lt;P&gt;I swear I have done this before but I want to use the existence of events from a log file to calculate if the service writing them is up.&lt;/P&gt;

&lt;P&gt;If I search over last 24 hours and there are events listed up until 12 hours ago, it would be 50% uptime.  Problem is that the 12 hours when there are no logs are ignored and I cant remember how to count empty time buckets to make the calculation.&lt;/P&gt;

&lt;P&gt;Now obviously I could use a latest if I only ever wanted to calculate things currently down, but I want to be able to sum all the time buckets where logs dont exist to the ones where they do.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2020 22:26:44 GMT</pubDate>
    <dc:creator>Cuyose</dc:creator>
    <dc:date>2020-01-24T22:26:44Z</dc:date>
    <item>
      <title>Calculate percent of missing events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-percent-of-missing-events/m-p/491465#M194241</link>
      <description>&lt;P&gt;I swear I have done this before but I want to use the existence of events from a log file to calculate if the service writing them is up.&lt;/P&gt;

&lt;P&gt;If I search over last 24 hours and there are events listed up until 12 hours ago, it would be 50% uptime.  Problem is that the 12 hours when there are no logs are ignored and I cant remember how to count empty time buckets to make the calculation.&lt;/P&gt;

&lt;P&gt;Now obviously I could use a latest if I only ever wanted to calculate things currently down, but I want to be able to sum all the time buckets where logs dont exist to the ones where they do.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 22:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-percent-of-missing-events/m-p/491465#M194241</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2020-01-24T22:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percent of missing events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-percent-of-missing-events/m-p/491466#M194242</link>
      <description>&lt;P&gt;I was able to finally figure out the right search to get what I needed. For any one coming across this, this solved my issue.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/409513/how-to-edit-my-search-to-calculate-time-availabili.html"&gt;https://answers.splunk.com/answers/409513/how-to-edit-my-search-to-calculate-time-availabili.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 22:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-percent-of-missing-events/m-p/491466#M194242</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2020-01-24T22:30:22Z</dc:date>
    </item>
  </channel>
</rss>

