<?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 chronologically sort headers in a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-chronologically-sort-headers-in-a-table/m-p/269689#M81150</link>
    <description>&lt;P&gt;Please share your query&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2016 14:36:18 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-12-09T14:36:18Z</dc:date>
    <item>
      <title>How to chronologically sort headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chronologically-sort-headers-in-a-table/m-p/269688#M81149</link>
      <description>&lt;P&gt;I have the following  table&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ApplicationGroup          0-10        10-20      101-150     151-200     20-30       201-300      30-35     310-340

ABB                       1           3          5           3           6           2            8         2
avv                       6           8          8           8           5           9            3         7
FFD                       3           6          6           3           90          11           55        55
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The number range that is shown is the Band and the numbers are basically the hours. I have created this using xyseries. As you can see the number ranges are not in order. Even if i apply sort, they are not coming in chronological order. Can we sort the number range header? If yes, how??&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 10:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chronologically-sort-headers-in-a-table/m-p/269688#M81149</guid>
      <dc:creator>ASISH_9</dc:creator>
      <dc:date>2016-12-09T10:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to chronologically sort headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chronologically-sort-headers-in-a-table/m-p/269689#M81150</link>
      <description>&lt;P&gt;Please share your query&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 14:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chronologically-sort-headers-in-a-table/m-p/269689#M81150</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-12-09T14:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to chronologically sort headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chronologically-sort-headers-in-a-table/m-p/269690#M81151</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Option 1&lt;/STRONG&gt;&lt;BR /&gt;
You will have to prefix your ApplicationGroup values with "1. 0-10", "2. 10-20", "3. 20-30" etc.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | replace "0-10" with "1.0-10" in ApplicationGroup | replace "20-30" with "2. 20-30" in ApplicationGroup | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Option 2&lt;/STRONG&gt;&lt;BR /&gt;
If this works you can actually define your own lookup and map "0-10" to "1. 0-10". For example, if you create a lookup date_hour_chrono like the following example, you can use the query give below:&lt;/P&gt;

&lt;P&gt;Date_Hour, Date_Hour_Chrono&lt;BR /&gt;
"0-10","1. 0-10"&lt;BR /&gt;
"10-20","2. 10-20"&lt;BR /&gt;
"20-30","3. 20-30"&lt;BR /&gt;
...&lt;BR /&gt;
...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | lookup date_hour_chrono Date_Hour as Application_Group OUTPUT Date_Hour_Chrono | your remaining search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Option 3&lt;/STRONG&gt;&lt;BR /&gt;
One more option that you might have provided your query uses actual &lt;STRONG&gt;date_hour&lt;/STRONG&gt; field extracted by Splunk from your event timestamp then you can feed the same to Splunk Punchcard visualization which plots Heat map across time series in both x and y axis and arranges according to time field selected like date_hour, date_wday etc.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chronologically-sort-headers-in-a-table/m-p/269690#M81151</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T12:06:15Z</dc:date>
    </item>
  </channel>
</rss>

