<?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 Splunk Host Reporting in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Splunk-Host-Reporting/m-p/683059#M12413</link>
    <description>&lt;P&gt;I am trying to determine a hosts percent of time it logs to splunk within a summary index we created. We have an index called "summary_index" and a field called "host_reported" that shows if a host has been seen in the past hour.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is the search i am using to see all hosts in the summary index that were seen within the last 24hrs:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=summary_index  |  stats count by host_reported

&lt;/LI-CODE&gt;
&lt;P&gt;What i am trying to do is develop a search that shows me what percent of the time over the past 7 days each host has reported to this summary index. So for example if host A only reported to the summary index 6 of the 7 days, i want it to show it's "up time "was 86% for the past 7 days.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 19:08:03 GMT</pubDate>
    <dc:creator>scout29</dc:creator>
    <dc:date>2024-04-03T19:08:03Z</dc:date>
    <item>
      <title>Splunk Host Reporting</title>
      <link>https://community.splunk.com/t5/Reporting/Splunk-Host-Reporting/m-p/683059#M12413</link>
      <description>&lt;P&gt;I am trying to determine a hosts percent of time it logs to splunk within a summary index we created. We have an index called "summary_index" and a field called "host_reported" that shows if a host has been seen in the past hour.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is the search i am using to see all hosts in the summary index that were seen within the last 24hrs:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=summary_index  |  stats count by host_reported

&lt;/LI-CODE&gt;
&lt;P&gt;What i am trying to do is develop a search that shows me what percent of the time over the past 7 days each host has reported to this summary index. So for example if host A only reported to the summary index 6 of the 7 days, i want it to show it's "up time "was 86% for the past 7 days.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 19:08:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Splunk-Host-Reporting/m-p/683059#M12413</guid>
      <dc:creator>scout29</dc:creator>
      <dc:date>2024-04-03T19:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Host Reporting</title>
      <link>https://community.splunk.com/t5/Reporting/Splunk-Host-Reporting/m-p/683066#M12414</link>
      <description>&lt;P&gt;Assuming that your summary index has a single event for each host for each day that it has reported, then you should be able to divide your count (from the stats command you shared) by 7 and multiply by 100 to get the percentage "uptime"&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 16:14:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Splunk-Host-Reporting/m-p/683066#M12414</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-03T16:14:48Z</dc:date>
    </item>
  </channel>
</rss>

