<?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 get the head K of each index in a Splunk search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-head-K-of-each-index-in-a-Splunk-search/m-p/113213#M29759</link>
    <description>&lt;P&gt;If you need the 10 most recent events by index, you can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | streamstats current=t count by index | where count&amp;lt;=10 | stats list(_raw) by index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Jul 2015 16:37:37 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-10T16:37:37Z</dc:date>
    <item>
      <title>How to get the head K of each index in a Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-head-K-of-each-index-in-a-Splunk-search/m-p/113211#M29757</link>
      <description>&lt;P&gt;My stats contain an entry called "index". How to get the head K of each index type? For example I want the top 10 in index=a, plus the top 10 in index=b, etc. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 16:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-head-K-of-each-index-in-a-Splunk-search/m-p/113211#M29757</guid>
      <dc:creator>lys1030</dc:creator>
      <dc:date>2015-07-10T16:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the head K of each index in a Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-head-K-of-each-index-in-a-Splunk-search/m-p/113212#M29758</link>
      <description>&lt;P&gt;You need a thing to "top" by.  For example, to see the top sourcetypes by index, do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | top sourcetype by index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2015 16:36:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-head-K-of-each-index-in-a-Splunk-search/m-p/113212#M29758</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T16:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the head K of each index in a Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-head-K-of-each-index-in-a-Splunk-search/m-p/113213#M29759</link>
      <description>&lt;P&gt;If you need the 10 most recent events by index, you can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | streamstats current=t count by index | where count&amp;lt;=10 | stats list(_raw) by index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2015 16:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-head-K-of-each-index-in-a-Splunk-search/m-p/113213#M29759</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T16:37:37Z</dc:date>
    </item>
  </channel>
</rss>

