<?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: Splunk Host Metrics Report in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Splunk-Host-Metrics-Report/m-p/678541#M12372</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261177"&gt;@scout29&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: you want:&lt;/P&gt;&lt;P&gt;number of events by host in the last hour and the hourly average in the last seven days, is it correct?&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count WHERE index=* BY host _time span=1h
| stats 
   avg(count) AS Average
   values(eval(if(_time&amp;gt;=now()-3600,count,0))) AS "Last hour"
   BY host&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2024 21:12:00 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-02-23T21:12:00Z</dc:date>
    <item>
      <title>Splunk Host Metrics Report</title>
      <link>https://community.splunk.com/t5/Reporting/Splunk-Host-Metrics-Report/m-p/678523#M12371</link>
      <description>&lt;P&gt;I am trying to create a search that will generate a report showing host by event count in the last hour and also the average 7 day hourly event count per host.&lt;BR /&gt;&lt;BR /&gt;So far i have the below search that shows host by event count over the last hour - but i am struggling to get a column added showing the weekly hourly average?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| tstats count where index=* by host, index, sourcetype | addtotals | sort -Total | fields - Total | rename count as events_latest_hour&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on how i get a column added showing the 7 day hourly average for event count ?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 17:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Splunk-Host-Metrics-Report/m-p/678523#M12371</guid>
      <dc:creator>scout29</dc:creator>
      <dc:date>2024-02-23T17:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Host Metrics Report</title>
      <link>https://community.splunk.com/t5/Reporting/Splunk-Host-Metrics-Report/m-p/678541#M12372</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261177"&gt;@scout29&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: you want:&lt;/P&gt;&lt;P&gt;number of events by host in the last hour and the hourly average in the last seven days, is it correct?&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count WHERE index=* BY host _time span=1h
| stats 
   avg(count) AS Average
   values(eval(if(_time&amp;gt;=now()-3600,count,0))) AS "Last hour"
   BY host&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 21:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Splunk-Host-Metrics-Report/m-p/678541#M12372</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-02-23T21:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Host Metrics Report</title>
      <link>https://community.splunk.com/t5/Reporting/Splunk-Host-Metrics-Report/m-p/678804#M12380</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; - Thanks! How could i modify this to include one more column showing the percent variance between the average count and latest hour count?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 10:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Splunk-Host-Metrics-Report/m-p/678804#M12380</guid>
      <dc:creator>scout29</dc:creator>
      <dc:date>2024-02-27T10:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Host Metrics Report</title>
      <link>https://community.splunk.com/t5/Reporting/Splunk-Host-Metrics-Report/m-p/678805#M12381</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261177"&gt;@scout29&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;use an eval command at the end of the search.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 11:00:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Splunk-Host-Metrics-Report/m-p/678805#M12381</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-02-27T11:00:34Z</dc:date>
    </item>
  </channel>
</rss>

