<?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: Sort record based on the time field within the record (not the system time) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sort-record-based-on-the-time-field-within-the-record-not-the/m-p/166553#M47417</link>
    <description>&lt;P&gt;Thanks lguinn ...it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Aug 2014 01:06:27 GMT</pubDate>
    <dc:creator>ishugupta</dc:creator>
    <dc:date>2014-08-01T01:06:27Z</dc:date>
    <item>
      <title>Sort record based on the time field within the record (not the system time)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-record-based-on-the-time-field-within-the-record-not-the/m-p/166551#M47415</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have my data in the below format :&lt;BR /&gt;
314 888 abcd 98 2013-07-09-08.01.41.00&lt;BR /&gt;
514 888 abcd 98 2013-07-07-08.01.42.00&lt;BR /&gt;
364 888 abcd 98 2013-01-02-10.01.46.00&lt;BR /&gt;
394 888 abcd 98 2013-07-02-11.01.48.00&lt;/P&gt;

&lt;P&gt;I am trying to sort my records based on the 5th column time stamp (which is not the ingestion time stamp) .&lt;BR /&gt;
Can you please help me with it?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 00:02:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-record-based-on-the-time-field-within-the-record-not-the/m-p/166551#M47415</guid>
      <dc:creator>ishugupta</dc:creator>
      <dc:date>2014-08-01T00:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort record based on the time field within the record (not the system time)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-record-based-on-the-time-field-within-the-record-not-the/m-p/166552#M47416</link>
      <description>&lt;P&gt;Hopefully, you have created the appropriate fields for your data. For the answer below, I assume that the 5th field is called &lt;CODE&gt;timestamp&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| eval ts = strftime(timestamp,"%Y-%m-%d-%H.%M.%S.%2N")
| sort ts
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Aug 2014 00:21:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-record-based-on-the-time-field-within-the-record-not-the/m-p/166552#M47416</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-08-01T00:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sort record based on the time field within the record (not the system time)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-record-based-on-the-time-field-within-the-record-not-the/m-p/166553#M47417</link>
      <description>&lt;P&gt;Thanks lguinn ...it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 01:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-record-based-on-the-time-field-within-the-record-not-the/m-p/166553#M47417</guid>
      <dc:creator>ishugupta</dc:creator>
      <dc:date>2014-08-01T01:06:27Z</dc:date>
    </item>
  </channel>
</rss>

