<?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: sorting date in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/sorting-date/m-p/111259#M29157</link>
    <description>&lt;P&gt;You should be able to do:&lt;BR /&gt;
     | sort -timestamp&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2013 11:11:51 GMT</pubDate>
    <dc:creator>polymorphic</dc:creator>
    <dc:date>2013-10-23T11:11:51Z</dc:date>
    <item>
      <title>sorting date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sorting-date/m-p/111258#M29156</link>
      <description>&lt;P&gt;I have a query as source="C:\Data\acctdata\snm4-logger.log" "Customer has successfully retrieved file"| rex "::\s(?&lt;TIMESTAMP&gt;\S+)\s"| rex "^\S+\s(?&lt;USERID&gt;\S+)." | rex "\s(?&lt;FILE_NAME&gt;\S+)\s((?&lt;RECORD_COUNT&gt;\d+)\srecords/(?&lt;BYTE_COUNT&gt;\d+)\sbytes)$"| stats count  sum(record_count) as RecordCount sum(byte_count) as ByteCount by timestamp userid .I want to sort the timestamp in descending order&lt;BR /&gt;
 so that result would be&lt;/BYTE_COUNT&gt;&lt;/RECORD_COUNT&gt;&lt;/FILE_NAME&gt;&lt;/USERID&gt;&lt;/TIMESTAMP&gt;&lt;/P&gt;

&lt;P&gt;userid    RecordCount  ByteCount  timestamp&lt;BR /&gt;&lt;BR /&gt;
 AAMG1FBY        3105    1586745   05/03/13 &lt;BR /&gt;
 AAMG1SBY        3129    1597053   04/03/13 &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sorting-date/m-p/111258#M29156</guid>
      <dc:creator>srajanbabu</dc:creator>
      <dc:date>2020-09-28T15:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: sorting date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sorting-date/m-p/111259#M29157</link>
      <description>&lt;P&gt;You should be able to do:&lt;BR /&gt;
     | sort -timestamp&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2013 11:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sorting-date/m-p/111259#M29157</guid>
      <dc:creator>polymorphic</dc:creator>
      <dc:date>2013-10-23T11:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: sorting date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sorting-date/m-p/111260#M29158</link>
      <description>&lt;P&gt;Uh well, sort? &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sort"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sort&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="C:\\Data\\acctdata\\snm4-logger.log" "Customer has successfully retrieved file"| rex "::\s(?&amp;lt;timestamp&amp;gt;\S+)\s"| rex "^\S+\s(?&amp;lt;userid&amp;gt;\S+)\." | rex "\s(?&amp;lt;file_name&amp;gt;\S+)\s\((?&amp;lt;record_count&amp;gt;\d+)\srecords/(?&amp;lt;byte_count&amp;gt;\d+)\sbytes\)$"| stats count  sum(record_count) as RecordCount sum(byte_count) as ByteCount by timestamp userid | sort - timestamp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Oct 2013 11:12:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sorting-date/m-p/111260#M29158</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-23T11:12:14Z</dc:date>
    </item>
  </channel>
</rss>

