<?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: help for sorting time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-for-sorting-time/m-p/527396#M148876</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to sort time fields you have to convert them in epochtime.&lt;/P&gt;&lt;P&gt;In your case, _time is already in epochtime so you have only to change the order of your commands:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort -_time
| eval "Event time" = strftime(_time, "%m/%d/%Y %H:%M") 
| table "Event time" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Sat, 31 Oct 2020 06:55:50 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-10-31T06:55:50Z</dc:date>
    <item>
      <title>help for sorting time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-for-sorting-time/m-p/527395#M148875</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;I use a time field like this but I am unable to sort the time with descending sort&lt;/P&gt;&lt;P&gt;How to do this please?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval time = strftime(_time, "%m/%d/%Y %H:%M") 
| rename time as "Event time" 
| table "Event time" 
| sort "Event time"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Oct 2020 06:23:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-for-sorting-time/m-p/527395#M148875</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-10-31T06:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: help for sorting time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-for-sorting-time/m-p/527396#M148876</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to sort time fields you have to convert them in epochtime.&lt;/P&gt;&lt;P&gt;In your case, _time is already in epochtime so you have only to change the order of your commands:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort -_time
| eval "Event time" = strftime(_time, "%m/%d/%Y %H:%M") 
| table "Event time" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 31 Oct 2020 06:55:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-for-sorting-time/m-p/527396#M148876</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-31T06:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: help for sorting time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-for-sorting-time/m-p/527401#M148877</link>
      <description>&lt;P&gt;Thanks Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 31 Oct 2020 08:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-for-sorting-time/m-p/527401#M148877</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-10-31T08:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: help for sorting time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-for-sorting-time/m-p/527407#M148878</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you.&lt;/P&gt;&lt;P&gt;ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Oct 2020 10:38:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-for-sorting-time/m-p/527407#M148878</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-31T10:38:57Z</dc:date>
    </item>
  </channel>
</rss>

