<?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: How to edit my search to show stats by host? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-stats-by-host/m-p/135691#M37116</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sc-perfmon sourcetype="Perfmon*" counter="Free Megabytes" OR "User Time" OR "Available MBytes" | stats sparkline, latest(_time) as latest_event by sourcetype, host | eval "time since latest event"=((now() -latest_event)/60)| sort "time since latest event" | fieldformat latest_event = strftime(latest_event, "%F %T")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Jun 2015 13:35:22 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-06-04T13:35:22Z</dc:date>
    <item>
      <title>How to edit my search to show stats by host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-stats-by-host/m-p/135690#M37115</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;In the below given search, I want to show data by "host", so please could anybody suggest me how to do this? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sc-perfmon sourcetype="Perfmon*" counter="Free Megabytes" OR "User Time" OR "Available MBytes" | stats sparkline, latest(_time) as latest_event by sourcetype | eval "time since latest event"=((now() -latest_event)/60)| sort "time since latest event" | fieldformat latest_event = strftime(latest_event, "%F %T")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Ankit&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 13:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-stats-by-host/m-p/135690#M37115</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-06-04T13:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to show stats by host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-stats-by-host/m-p/135691#M37116</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sc-perfmon sourcetype="Perfmon*" counter="Free Megabytes" OR "User Time" OR "Available MBytes" | stats sparkline, latest(_time) as latest_event by sourcetype, host | eval "time since latest event"=((now() -latest_event)/60)| sort "time since latest event" | fieldformat latest_event = strftime(latest_event, "%F %T")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2015 13:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-stats-by-host/m-p/135691#M37116</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-04T13:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to show stats by host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-stats-by-host/m-p/135692#M37117</link>
      <description>&lt;P&gt;Thanks a lot buddy.. it works..&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 13:39:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-stats-by-host/m-p/135692#M37117</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2015-06-04T13:39:36Z</dc:date>
    </item>
  </channel>
</rss>

