<?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 sort every 6 rows of a column in splunk? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682975#M12409</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Thankyou &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258346"&gt;@meetmshah&lt;/a&gt;&amp;nbsp;for the quick revert and apologies for the delay in response. The solution indeed works. However, when I try to create a trellis layout (split by S_no), the graphs are displayed in the original order (1,3,2,4,5,6) and not how I want it to be i.e. 1,2,3,4,5,6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug by any chance?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 08:09:24 GMT</pubDate>
    <dc:creator>maverick27</dc:creator>
    <dc:date>2024-04-03T08:09:24Z</dc:date>
    <item>
      <title>How to sort every 6 rows of a column in splunk?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682114#M12400</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Splunk Experts,&lt;BR /&gt;&lt;BR /&gt;Lets say i have a table that contains 2 columns as shown below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" width="128" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;Name&lt;/TD&gt;&lt;TD width="64"&gt;S_no&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;aaa&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ccc&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;bbb&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ddd&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;eee&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;fff&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ggg&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;iii&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;hhh&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;jjj&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;kkk&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;lll&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;mmm&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ooo&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;nnn&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ppp&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;qqq&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;rrr&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Now, I need to sort every 6 rows of 's_no' column and populate the table. Something like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" width="128" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;Name&lt;/TD&gt;&lt;TD width="64"&gt;S_no&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;aaa&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;bbb&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ccc&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ddd&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;eee&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;fff&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ggg&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;hhh&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;iii&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;jjj&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;kkk&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;lll&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;mmm&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;nnn&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ooo&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ppp&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;qqq&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;rrr&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Could you please help me with the query? Much appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 14:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682114#M12400</guid>
      <dc:creator>maverick27</dc:creator>
      <dc:date>2024-03-27T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort every 6 rows of a column in splunk?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682116#M12401</link>
      <description>&lt;P&gt;Done, Can you please below search in Splunk and confirm if this is something you want -&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval data="aaa,1 ccc,3 bbb,2 ddd,4 eee,5 fff,6 ggg,1 iii,3 hhh,2 jjj,4 kkk,5 lll,6 mmm,1 ooo,3 nnn,2 ppp,4 qqq,5 rrr,6" 
| makemv data delim=" " 
| mvexpand data 
| rex field=data "(?&amp;lt;Name&amp;gt;\w+),(?&amp;lt;S_no&amp;gt;\d+)" 
| streamstats count as row_num 
| eval GroupNum = floor((row_num - 1) / 6) 
| sort GroupNum S_no 
| fields - _time data row_num GroupNum&lt;/LI-CODE&gt;&lt;P&gt;Output -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="meetmshah_0-1711552853098.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29913i48E0273362DCDFE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="meetmshah_0-1711552853098.png" alt="meetmshah_0-1711552853098.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please accept the solution and hit Karma, if this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 15:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682116#M12401</guid>
      <dc:creator>meetmshah</dc:creator>
      <dc:date>2024-03-27T15:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort every 6 rows of a column in splunk?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682117#M12402</link>
      <description>&lt;LI-CODE lang="markup"&gt;| streamstats count as row
| eval group=floor((row - 1) / 6)
| sort 0 group S_no
| fields - group row&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Mar 2024 15:22:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682117#M12402</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-27T15:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort every 6 rows of a column in splunk?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682458#M12408</link>
      <description>&lt;P&gt;Hello, Just checking through if the issue was resolved or you have any further questions?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2024 06:34:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682458#M12408</guid>
      <dc:creator>meetmshah</dc:creator>
      <dc:date>2024-03-30T06:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort every 6 rows of a column in splunk?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682975#M12409</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Thankyou &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258346"&gt;@meetmshah&lt;/a&gt;&amp;nbsp;for the quick revert and apologies for the delay in response. The solution indeed works. However, when I try to create a trellis layout (split by S_no), the graphs are displayed in the original order (1,3,2,4,5,6) and not how I want it to be i.e. 1,2,3,4,5,6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug by any chance?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 08:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682975#M12409</guid>
      <dc:creator>maverick27</dc:creator>
      <dc:date>2024-04-03T08:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort every 6 rows of a column in splunk?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682979#M12410</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262674"&gt;@maverick27&lt;/a&gt; sort should work in that case right? ie. -&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort GroupNum S_no &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Apr 2024 08:13:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682979#M12410</guid>
      <dc:creator>meetmshah</dc:creator>
      <dc:date>2024-04-03T08:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort every 6 rows of a column in splunk?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682986#M12411</link>
      <description>&lt;P&gt;NO. It doesn't work in trellis layout even though the result is sorted. I am already using the following in the query:&lt;BR /&gt;&lt;BR /&gt;sort 0 group S_no&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 08:27:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682986#M12411</guid>
      <dc:creator>maverick27</dc:creator>
      <dc:date>2024-04-03T08:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort every 6 rows of a column in splunk?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682995#M12412</link>
      <description>&lt;P&gt;Sounds like a feature - trellis is probably sorting the display based on the first field&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 09:11:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-sort-every-6-rows-of-a-column-in-splunk/m-p/682995#M12412</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-03T09:11:16Z</dc:date>
    </item>
  </channel>
</rss>

