<?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: Ranking Rows in a Table based on the count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140789#M38947</link>
    <description>&lt;P&gt;Hi davebrooking. I don't want to show statistics for each event. I want to first sum up views count for a single channel using sum command, sort it in descending order and rank it from top to bottom based on the total views count for each channel. &lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2015 07:40:10 GMT</pubDate>
    <dc:creator>kabiraj</dc:creator>
    <dc:date>2015-06-03T07:40:10Z</dc:date>
    <item>
      <title>Ranking Rows in a Table based on the count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140786#M38944</link>
      <description>&lt;P&gt;I have a table containing two columns: Channel Name and Total views. I want to create another column using eval to rank these channels based on the counts of the Total Views.&lt;/P&gt;

&lt;P&gt;e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BBC Sport 1     5566     1
BBC Sport 2     3000     2
FOX HD          1134     3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and so on till the channel with least number of views. &lt;/P&gt;

&lt;P&gt;First col - Channel Name, Second col - Total Views, Third Col - Rank. Can it be done in Splunk. Please reply.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 07:12:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140786#M38944</guid>
      <dc:creator>kabiraj</dc:creator>
      <dc:date>2015-06-03T07:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Rows in a Table based on the count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140787#M38945</link>
      <description>&lt;P&gt;You should be able to use the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/Streamstats"&gt;streamstats&lt;/A&gt; command to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 07:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140787#M38945</guid>
      <dc:creator>davebrooking</dc:creator>
      <dc:date>2015-06-03T07:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Rows in a Table based on the count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140788#M38946</link>
      <description>&lt;P&gt;Can you be more specific? Your table has 5 columns. What is the rank and how do you get it?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 07:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140788#M38946</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-03T07:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Rows in a Table based on the count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140789#M38947</link>
      <description>&lt;P&gt;Hi davebrooking. I don't want to show statistics for each event. I want to first sum up views count for a single channel using sum command, sort it in descending order and rank it from top to bottom based on the total views count for each channel. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 07:40:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140789#M38947</guid>
      <dc:creator>kabiraj</dc:creator>
      <dc:date>2015-06-03T07:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Rows in a Table based on the count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140790#M38948</link>
      <description>&lt;P&gt;As @davebrooking mentioned, streamstats should be able to do this &lt;CODE&gt;your search | sort -field | streamstats count&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 07:44:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140790#M38948</guid>
      <dc:creator>sc0tt</dc:creator>
      <dc:date>2015-06-03T07:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Rows in a Table based on the count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140791#M38949</link>
      <description>&lt;P&gt;Thanks davebrooking &amp;amp; sc0tt.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 07:49:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ranking-Rows-in-a-Table-based-on-the-count/m-p/140791#M38949</guid>
      <dc:creator>kabiraj</dc:creator>
      <dc:date>2015-06-03T07:49:52Z</dc:date>
    </item>
  </channel>
</rss>

