<?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 Looking for a search to categorize by hosts..?? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Looking-for-a-search-to-categorize-by-hosts/m-p/356813#M174843</link>
    <description>&lt;P&gt;I am expecting a single search to categorize by hosts with individual count and total count by category...&lt;/P&gt;

&lt;P&gt;SET-A                    Count   _time&lt;BR /&gt;
host=web01               25&lt;BR /&gt;
host=web02               55&lt;BR /&gt;
SET-A Total                80&lt;/P&gt;

&lt;P&gt;SET-B                 Count      _time&lt;BR /&gt;
host=web05               15&lt;BR /&gt;
host=web06               20&lt;BR /&gt;
SET-B-Total                35&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2017 15:11:34 GMT</pubDate>
    <dc:creator>prakash007</dc:creator>
    <dc:date>2017-05-01T15:11:34Z</dc:date>
    <item>
      <title>Looking for a search to categorize by hosts..??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Looking-for-a-search-to-categorize-by-hosts/m-p/356813#M174843</link>
      <description>&lt;P&gt;I am expecting a single search to categorize by hosts with individual count and total count by category...&lt;/P&gt;

&lt;P&gt;SET-A                    Count   _time&lt;BR /&gt;
host=web01               25&lt;BR /&gt;
host=web02               55&lt;BR /&gt;
SET-A Total                80&lt;/P&gt;

&lt;P&gt;SET-B                 Count      _time&lt;BR /&gt;
host=web05               15&lt;BR /&gt;
host=web06               20&lt;BR /&gt;
SET-B-Total                35&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 15:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Looking-for-a-search-to-categorize-by-hosts/m-p/356813#M174843</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2017-05-01T15:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a search to categorize by hosts..??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Looking-for-a-search-to-categorize-by-hosts/m-p/356814#M174844</link>
      <description>&lt;P&gt;You can if you have that category column available in the logs OR can be added later (eval-case or lookup etc).&lt;/P&gt;

&lt;P&gt;e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search giving fields host, _time
| ...some logic to get category field there...
| bucket _time span=10m  ***assuming you want to bucket time. update as required***
| stats count by _time category host
| appendpipe [| stats sum(count) as count by _time category | eval category=category."- Total"]
| stats list(host) as host list(count) as count by _time category
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 May 2017 15:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Looking-for-a-search-to-categorize-by-hosts/m-p/356814#M174844</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-01T15:32:10Z</dc:date>
    </item>
  </channel>
</rss>

