<?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 the average time?? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355179#M105079</link>
    <description>&lt;P&gt;Can you post some example data?&lt;BR /&gt;
What format are the values in?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2017 10:32:45 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2017-12-21T10:32:45Z</dc:date>
    <item>
      <title>How to sort the average time??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355178#M105078</link>
      <description>&lt;P&gt;I have on field named average duration which is right now sorting alphabetically.&lt;BR /&gt;
Are there any way we can sort it by month,day ,hours and minutes then in numerical order??&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 10:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355178#M105078</guid>
      <dc:creator>chitreshakumar</dc:creator>
      <dc:date>2017-12-21T10:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the average time??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355179#M105079</link>
      <description>&lt;P&gt;Can you post some example data?&lt;BR /&gt;
What format are the values in?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 10:32:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355179#M105079</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-21T10:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the average time??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355180#M105080</link>
      <description>&lt;P&gt;Name      Average duration&lt;BR /&gt;
X                1.4 hrs&lt;BR /&gt;
Y                6.2 minutes&lt;BR /&gt;
Z                2.9 days &lt;BR /&gt;
XY              20 days&lt;BR /&gt;
YZ              22minutes&lt;BR /&gt;
A                1.2 months&lt;/P&gt;

&lt;P&gt;Something like this.Since its confidential so can't post the original .SO sample one I am posting&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 10:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355180#M105080</guid>
      <dc:creator>chitreshakumar</dc:creator>
      <dc:date>2017-12-21T10:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the average time??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355181#M105081</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval month_num=strftime(_time,"%m") | eval Month=date_mday."-".date_month."-".date_year."-".date_hour.":".date_minute | stats count by month_num,Month date_hour date_mday date_minute | sort - limit=0 month_num date_mday date_hour date_minute
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Dec 2017 10:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355181#M105081</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-21T10:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the average time??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355182#M105082</link>
      <description>&lt;P&gt;Thanks for your reply!!&lt;BR /&gt;
But there is only one field that is having the average count for every person .I want a logic for that kind of sorting.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 10:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355182#M105082</guid>
      <dc:creator>chitreshakumar</dc:creator>
      <dc:date>2017-12-21T10:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the average time??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355183#M105083</link>
      <description>&lt;P&gt;hmm... yuk!&lt;/P&gt;

&lt;P&gt;probably just a formatting error - but can you confirm there is always a space between the number and the unit.&lt;BR /&gt;
Also, is it hrs, or hours?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 10:48:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355183#M105083</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-21T10:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the average time??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355184#M105084</link>
      <description>&lt;P&gt;this is your input data right?&lt;BR /&gt;
and what output you want?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 10:49:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355184#M105084</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-21T10:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the average time??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355185#M105085</link>
      <description>&lt;P&gt;Try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt;|table Name "Average duration"
|rex field="Average duration" "(?&amp;lt;val&amp;gt;\d+\.?\d+)\s(?&amp;lt;unit&amp;gt;\w+)"
|evalmultiplier=case(unit=="seconds",1,unit="minutes",60,unit=="hrs",3600,unit=="days",86400,unit="months",2592000)
|eval durseconds=(val*multiplier)
|sort -durseconds|fields Name "Average duration"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Dec 2017 11:00:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355185#M105085</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-21T11:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the average time??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355186#M105086</link>
      <description>&lt;P&gt;This is the input .I want output like .&lt;BR /&gt;
While ascending&lt;BR /&gt;
Y 6.2 minutes&lt;BR /&gt;
YZ 22minutes&lt;BR /&gt;
X 1.4 hrs&lt;BR /&gt;
Z 2.9 days &lt;BR /&gt;
XY 20 days&lt;BR /&gt;
A 1.2 months&lt;/P&gt;

&lt;P&gt;Descending &lt;BR /&gt;
A 1.2 months&lt;BR /&gt;
XY 20 days&lt;BR /&gt;
Z 2.9 days &lt;BR /&gt;
X 1.4 hrs&lt;BR /&gt;
YZ 22minutes&lt;BR /&gt;
Y 6.2 minutes&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 11:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-the-average-time/m-p/355186#M105086</guid>
      <dc:creator>chitreshakumar</dc:creator>
      <dc:date>2017-12-21T11:16:03Z</dc:date>
    </item>
  </channel>
</rss>

