<?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: Error in 'transaction' command: Descending time ordered events required, but the preceding search does not guarantee time order in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-in-transaction-command-Descending-time-ordered-events/m-p/301312#M90726</link>
    <description>&lt;P&gt;Do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time=strptime(timegenerated,"%Y-%m-%dT%H:%M:%SZ")
| sort 0 - _time
| transaction fields=hostname maxspan=60m 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Apr 2017 01:01:44 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-04-04T01:01:44Z</dc:date>
    <item>
      <title>Error in 'transaction' command: Descending time ordered events required, but the preceding search does not guarantee time order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-transaction-command-Descending-time-ordered-events/m-p/301311#M90725</link>
      <description>&lt;P&gt;I believe commands like "transaction" work on the _time metadata field that is hidden in each event. This is similar to timechart or bucket. The problem here is that the events I have get indexed all at once, and _time gets stamped to that one single timestamp.&lt;/P&gt;

&lt;P&gt;However, we still have the correct timestamp when the log events were generated. Therefor I try resetting _time to that timestamp like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time=strptime(timegenerated,"%Y-%m-%dT%H:%M:%SZ")
| transaction fields=hostname maxspan=60m 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works for bucket and timechart, however, it's not working for transaction:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'transaction' command: Descending time ordered events required, but the preceding search does not guarantee time order
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way to overcome this and get transaction to work on the new _time field? Is there any other way to accomplish this?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 23:59:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-transaction-command-Descending-time-ordered-events/m-p/301311#M90725</guid>
      <dc:creator>thisissplunk</dc:creator>
      <dc:date>2017-04-03T23:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'transaction' command: Descending time ordered events required, but the preceding search does not guarantee time order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-transaction-command-Descending-time-ordered-events/m-p/301312#M90726</link>
      <description>&lt;P&gt;Do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time=strptime(timegenerated,"%Y-%m-%dT%H:%M:%SZ")
| sort 0 - _time
| transaction fields=hostname maxspan=60m 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Apr 2017 01:01:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-transaction-command-Descending-time-ordered-events/m-p/301312#M90726</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-04T01:01:44Z</dc:date>
    </item>
  </channel>
</rss>

