<?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 do I keep the ordering of rows on the result of a transaction command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180814#M52097</link>
    <description>&lt;P&gt;Again, according to the doc, you can pass a list of fields instead of t/f values. So in your case, maybe something like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;mvlist="Operation,Version,txn_id,Field Value"&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Oct 2014 17:27:45 GMT</pubDate>
    <dc:creator>aweitzman</dc:creator>
    <dc:date>2014-10-22T17:27:45Z</dc:date>
    <item>
      <title>How do I keep the ordering of rows on the result of a transaction command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180811#M52094</link>
      <description>&lt;P&gt;I have splunk poll a database and return the results into a &lt;CODE&gt;transaction&lt;/CODE&gt; command. The transaction command groups the rows by key (which is whited-out, below) with &lt;CODE&gt;maxevents=2&lt;/CODE&gt;. However, the results of that &lt;CODE&gt;transaction&lt;/CODE&gt; appear disjointed. Below, the column containing the values 0.886, 0.88695, etc. is a historic column showing the historic values of the field. So at one point, field 'rate' has value '0.92695' but it was deleted and the value '0.9314' was inserted instead.&lt;/P&gt;

&lt;P&gt;As you can see, the values don't appear logically - the 3rd row from bottom breaks the 'previous value top, new value bottom'. I want this ordering to be consistent on the whole column, so the user knows that the previous value will always be on the top. How do I do this?&lt;/P&gt;

&lt;P&gt;I think what's going on is that splunk is taking the values of the transaction, combining them together and then ordering each column in ascending order individually and breaking the row mappings. I want it so that the rows keep their mappings.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.stack.imgur.com/ar3UM.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180811#M52094</guid>
      <dc:creator>sjanwity</dc:creator>
      <dc:date>2014-10-22T15:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I keep the ordering of rows on the result of a transaction command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180812#M52095</link>
      <description>&lt;P&gt;Based on &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/SearchReference/Transaction"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/SearchReference/Transaction&lt;/A&gt; I think &lt;CODE&gt;mvlist=t&lt;/CODE&gt; ought to do what you want.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:39:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180812#M52095</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-10-22T15:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I keep the ordering of rows on the result of a transaction command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180813#M52096</link>
      <description>&lt;P&gt;but then it repeats the same items on the line? Like it repeats my key even though the key is the same.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 17:09:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180813#M52096</guid>
      <dc:creator>sjanwity</dc:creator>
      <dc:date>2014-10-22T17:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I keep the ordering of rows on the result of a transaction command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180814#M52097</link>
      <description>&lt;P&gt;Again, according to the doc, you can pass a list of fields instead of t/f values. So in your case, maybe something like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;mvlist="Operation,Version,txn_id,Field Value"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 17:27:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180814#M52097</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-10-22T17:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I keep the ordering of rows on the result of a transaction command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180815#M52098</link>
      <description>&lt;P&gt;doh...I saw &lt;CODE&gt;(bool)&lt;/CODE&gt; in the &lt;CODE&gt;mvlist&lt;/CODE&gt; parameter list and didnt bother reading the rest of the line...whoops!&lt;/P&gt;

&lt;P&gt;I created a macro which combines the rows if they're the same in the meantime. Interestingly, it makes the search take 0.8 seconds (5.9-&amp;gt;5.1) quicker manually combining each row! &lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2014 17:50:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180815#M52098</guid>
      <dc:creator>sjanwity</dc:creator>
      <dc:date>2014-10-22T17:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I keep the ordering of rows on the result of a transaction command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180816#M52099</link>
      <description>&lt;P&gt;Hi, the solution works fine but is it possible for the 'VERSION' column to be sorted ascendingly (i.e. bigger value always on top) and the rows to be reflected as such? Currently the row mappings match but the ordering is still quite random&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2014 15:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180816#M52099</guid>
      <dc:creator>sjanwity</dc:creator>
      <dc:date>2014-11-04T15:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I keep the ordering of rows on the result of a transaction command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180817#M52100</link>
      <description>&lt;P&gt;I'm sorry, I don't think this is possible. Once the events are bundled into a transaction, your ability to order them as individual rows effectively disappears.&lt;/P&gt;

&lt;P&gt;So your solution might be instead to order your events by &lt;CODE&gt;VERSION&lt;/CODE&gt; first, and then apply the transaction command to them.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 15:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-keep-the-ordering-of-rows-on-the-result-of-a/m-p/180817#M52100</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-11-05T15:25:41Z</dc:date>
    </item>
  </channel>
</rss>

