<?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 Sorting the months by calender in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sorting-the-months-by-calender-in-splunk/m-p/102501#M26486</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;how to sort the months according to the calender &lt;/P&gt;

&lt;P&gt;This is the search query&lt;BR /&gt;
source="D:\AVERAGE_CLOSE_TIME.csv" NOT "Month"| stats avg(Avg_Close_Time) as "Average Close Time in Days" by Month&lt;/P&gt;

&lt;P&gt;This is the output&lt;BR /&gt;
1   Apr-12  29.000000&lt;BR /&gt;
2   Aug-12  18.000000&lt;BR /&gt;
3   Dec-12  22.000000&lt;BR /&gt;
4   Feb-12  36.000000&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:46:23 GMT</pubDate>
    <dc:creator>ncbshiva</dc:creator>
    <dc:date>2020-09-28T13:46:23Z</dc:date>
    <item>
      <title>Sorting the months by calender in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sorting-the-months-by-calender-in-splunk/m-p/102501#M26486</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;how to sort the months according to the calender &lt;/P&gt;

&lt;P&gt;This is the search query&lt;BR /&gt;
source="D:\AVERAGE_CLOSE_TIME.csv" NOT "Month"| stats avg(Avg_Close_Time) as "Average Close Time in Days" by Month&lt;/P&gt;

&lt;P&gt;This is the output&lt;BR /&gt;
1   Apr-12  29.000000&lt;BR /&gt;
2   Aug-12  18.000000&lt;BR /&gt;
3   Dec-12  22.000000&lt;BR /&gt;
4   Feb-12  36.000000&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:46:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sorting-the-months-by-calender-in-splunk/m-p/102501#M26486</guid>
      <dc:creator>ncbshiva</dc:creator>
      <dc:date>2020-09-28T13:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the months by calender in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sorting-the-months-by-calender-in-splunk/m-p/102502#M26487</link>
      <description>&lt;P&gt;Convert your date fieldinto an epoch value 1st, so that it can be sorted.&lt;BR /&gt;&lt;BR /&gt;
Then &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/Fieldformat"&gt;fieldformat&lt;/A&gt; the results so they are displayed however you want&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval Month=strptime("01-".Month,"%d-%b-y")
    | fieldformat Month=strftime(Month,"%b-%y")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should work out for you&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 06:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sorting-the-months-by-calender-in-splunk/m-p/102502#M26487</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-04-22T06:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the months by calender in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sorting-the-months-by-calender-in-splunk/m-p/102503#M26488</link>
      <description>&lt;P&gt;Sorry i did'nt get , can u tell me in detail......?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 11:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sorting-the-months-by-calender-in-splunk/m-p/102503#M26488</guid>
      <dc:creator>ncbshiva</dc:creator>
      <dc:date>2013-04-22T11:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the months by calender in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sorting-the-months-by-calender-in-splunk/m-p/102504#M26489</link>
      <description>&lt;P&gt;just add what I posted to the end of your search ( minus the ... at the beginning )&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 11:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sorting-the-months-by-calender-in-splunk/m-p/102504#M26489</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-04-22T11:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the months by calender in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sorting-the-months-by-calender-in-splunk/m-p/102505#M26490</link>
      <description>&lt;P&gt;yes i have added , but i am getting "No results found"&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 11:49:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sorting-the-months-by-calender-in-splunk/m-p/102505#M26490</guid>
      <dc:creator>ncbshiva</dc:creator>
      <dc:date>2013-04-22T11:49:44Z</dc:date>
    </item>
  </channel>
</rss>

