<?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: Top 10 for each date in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701783#M238024</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;did you mean the final splunk query would look like as below?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex RecordType=abc DML_Action=INSERT earliest=-4d 
| bin _time span=1d 
| stats sum(numRows) as count by _time,table_Name 
| sort limit=10 +_time -count
| sort 0 _time
| streamstats latest(count) as previous by Table_Name window=1 global=f current=f
| eval increase=round(100*(count-previous)/previous,0)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 14 Oct 2024 09:31:23 GMT</pubDate>
    <dc:creator>bmer</dc:creator>
    <dc:date>2024-10-14T09:31:23Z</dc:date>
    <item>
      <title>Top 10 for each date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701738#M238017</link>
      <description>&lt;P class=""&gt;I have below splunk which gives result of top 10 only for a particular day and I know the reason why too. How can I tweak it to get top 10 for each date i.e.&amp;nbsp;If I run the splunk on 14-Oct, the output must include 10-Oct, 11-Oct, 12.-Oct and 13-Oct each with top 10&amp;nbsp; table names with highest insert sum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex RecordType=abc DML_Action=INSERT earliest=-4d 
| bin _time span=1d 
| stats sum(numRows) as count by _time,table_Name 
| sort limit=10 +_time -count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 13:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701738#M238017</guid>
      <dc:creator>bmer</dc:creator>
      <dc:date>2024-10-13T13:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 for each date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701739#M238018</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=myindex RecordType=abc DML_Action=INSERT earliest=-4d 
| bin _time span=1d 
| stats sum(numRows) as count by _time,table_Name 
| sort 0 +_time -count
| streamstats count as row by _time
| where row &amp;lt;= 10&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 13 Oct 2024 14:19:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701739#M238018</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-13T14:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 for each date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701750#M238019</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;This helps. Iam going to read more about streamstats command now.My desired output is as below where am trying to see daily % growth of data.For eg. The green colored table is the output I got from your modified splunk.I want to generate output as per other table where "daily % growth" (for each table in a date) formula is (120-100)/100 rounded to 0 as percentage output.&lt;BR /&gt;&lt;BR /&gt;Is this something which can be achieved?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 03:55:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701750#M238019</guid>
      <dc:creator>bmer</dc:creator>
      <dc:date>2024-10-14T03:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 for each date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701756#M238020</link>
      <description>&lt;P&gt;There is an easier way.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex RecordType=abc DML_Action=INSERT earliest=-4d 
| bin _time span=1d 
| stats sum(numRows) as count by _time,table_Name 
| sort 0 +_time -count
| dedup 10 _time&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 14 Oct 2024 07:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701756#M238020</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-10-14T07:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 for each date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701772#M238021</link>
      <description>&lt;LI-CODE lang="markup"&gt;| sort 0 _time
| streamstats latest(count) as previous by Table_Name window=1 global=f current=f
| eval increase=round(100*(count-previous)/previous,0)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 14 Oct 2024 08:19:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701772#M238021</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-14T08:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 for each date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701783#M238024</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;did you mean the final splunk query would look like as below?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex RecordType=abc DML_Action=INSERT earliest=-4d 
| bin _time span=1d 
| stats sum(numRows) as count by _time,table_Name 
| sort limit=10 +_time -count
| sort 0 _time
| streamstats latest(count) as previous by Table_Name window=1 global=f current=f
| eval increase=round(100*(count-previous)/previous,0)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 14 Oct 2024 09:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701783#M238024</guid>
      <dc:creator>bmer</dc:creator>
      <dc:date>2024-10-14T09:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 for each date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701785#M238025</link>
      <description>&lt;P&gt;No, more like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex RecordType=abc DML_Action=INSERT earliest=-4d 
| bin _time span=1d 
| stats sum(numRows) as count by _time,table_Name 
| sort 0 +_time -count
| streamstats count as row by _time
| where row &amp;lt;= 10
| streamstats latest(count) as previous by table_Name window=1 global=f current=f
| eval increase=round(100*(count-previous)/previous,0)&lt;/LI-CODE&gt;&lt;P&gt;The previous answer was based on the green table - since this is based on my first answer, combining the two should work for you (I removed the extra sort as this is redundant given the first sort.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 09:55:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-10-for-each-date/m-p/701785#M238025</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-14T09:55:27Z</dc:date>
    </item>
  </channel>
</rss>

