<?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: Need to identify the top 50 groups in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-identify-the-top-50-groups/m-p/328960#M97912</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc source=license_usage.log type=usage
| rex field=h "(ab2)(?&amp;lt;Group&amp;gt;\w+[^\d+])"
| regex Group="YourRegExForGroupsToConsiderHere"
| top limit=50 useother=f Group BY b
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Jul 2017 22:12:14 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-07-24T22:12:14Z</dc:date>
    <item>
      <title>Need to identify the top 50 groups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-identify-the-top-50-groups/m-p/328959#M97911</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=abc source=license_usage.log type=usage | rex field=h "(ab2)(?P\w+[^\d+])" |search Group=kb01m OR Group=kb02r  | eval GB = b/1024/1024  | rename s AS source | stats sum(GB) AS "MB consumed" by Group
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above is the query ,but we have different groups like kb02m,kb02r,kb03m,kb03r,kb04m,kb04r......kb500m . How can i modify my query to find which group is consuming more MB . i would like have output of top 50 contributing group names along with MB they consumed.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 21:56:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-identify-the-top-50-groups/m-p/328959#M97911</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-07-24T21:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need to identify the top 50 groups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-identify-the-top-50-groups/m-p/328960#M97912</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc source=license_usage.log type=usage
| rex field=h "(ab2)(?&amp;lt;Group&amp;gt;\w+[^\d+])"
| regex Group="YourRegExForGroupsToConsiderHere"
| top limit=50 useother=f Group BY b
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jul 2017 22:12:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-identify-the-top-50-groups/m-p/328960#M97912</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-07-24T22:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need to identify the top 50 groups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-identify-the-top-50-groups/m-p/328961#M97913</link>
      <description>&lt;P&gt;thanks for the reply. But i am trying to make the group name dynamic because it is difficult to mention all the 500 groups . something like  |  Group=kb(\d)m OR Group=kb(\d)r  &lt;/P&gt;

&lt;P&gt;and it should list the top 50 groups .&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 02:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-identify-the-top-50-groups/m-p/328961#M97913</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-07-25T02:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need to identify the top 50 groups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-identify-the-top-50-groups/m-p/328962#M97914</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; index=abc source=license_usage.log type=usage | rex field=h "(ab2)(?P\w+[^\d+])" |search Group=kb01m OR Group=kb02r  | eval GB = b/1024/1024  | rename s AS source | stats sum(GB) AS "MB consumed" by Group|sort 0 Group - "MB consumed" |streamstats count by Group|search count&amp;lt;=50|fields - count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;something like this, maybe?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 11:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-identify-the-top-50-groups/m-p/328962#M97914</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-25T11:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need to identify the top 50 groups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-identify-the-top-50-groups/m-p/328963#M97915</link>
      <description>&lt;P&gt;I have updated my answer to include all requirements.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 15:01:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-identify-the-top-50-groups/m-p/328963#M97915</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-07-25T15:01:44Z</dc:date>
    </item>
  </channel>
</rss>

