<?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: Group all events by same transaction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Group-all-events-by-same-transaction/m-p/77780#M19660</link>
    <description>&lt;P&gt;yes i thought the command ...| transaction TransactionID | ... will return the correct results but it is not. If use ...TransactionID..., it will return the correct results, how come?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2013 01:20:17 GMT</pubDate>
    <dc:creator>thinksplunk</dc:creator>
    <dc:date>2013-10-02T01:20:17Z</dc:date>
    <item>
      <title>Group all events by same transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-all-events-by-same-transaction/m-p/77777#M19657</link>
      <description>&lt;P&gt;2013-09-25 23:23:34 .....TransactionID=abc&lt;BR /&gt;
2013-09-25 14:23:34 .....TransactionID=dec&lt;BR /&gt;
2013-09-24 05:42:53......TransactionID=dec&lt;BR /&gt;
2013-09-22 12:42:53......TransactionID=abc&lt;BR /&gt;
2013-09-12 12:42:53......TransactionID=ads&lt;BR /&gt;
If i need group all event by TransactionID as show below, what will be the search command? Thks&lt;/P&gt;

&lt;P&gt;TransactionID     Time&lt;BR /&gt;
abc               2013-09-25 23:23:34.....&lt;BR /&gt;
                  2013-09-22 12:42:53..... &lt;BR /&gt;
dec               2013-09-25 14:23:34....&lt;BR /&gt;
                  2013-09-24 05:42:53......&lt;BR /&gt;
ads               2013-09-12 12:42:53......&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2013 08:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-all-events-by-same-transaction/m-p/77777#M19657</guid>
      <dc:creator>thinksplunk</dc:creator>
      <dc:date>2013-10-01T08:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Group all events by same transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-all-events-by-same-transaction/m-p/77778#M19658</link>
      <description>&lt;P&gt;The command is &lt;CODE&gt;transaction&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| transaction TransactionID | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's quite well documented in the Search Reference manual.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;aholzer has an excellent point. And if that grouping is all you want to do, &lt;CODE&gt;stats&lt;/CODE&gt; is far more efficient, e.g;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| stats list(_time) by TransactionID | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Stats"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Stats&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2013 09:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-all-events-by-same-transaction/m-p/77778#M19658</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-01T09:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Group all events by same transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-all-events-by-same-transaction/m-p/77779#M19659</link>
      <description>&lt;P&gt;Transaction is a pretty calculation intensive command to use. So make sure you read up all the different options to shrink how long transactions are kept open for.&lt;/P&gt;

&lt;P&gt;For example, maxspan, maxwait, endswith, startswith, are all great ways to make the transaction command a lot more efficient.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2013 18:10:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-all-events-by-same-transaction/m-p/77779#M19659</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2013-10-01T18:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Group all events by same transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-all-events-by-same-transaction/m-p/77780#M19660</link>
      <description>&lt;P&gt;yes i thought the command ...| transaction TransactionID | ... will return the correct results but it is not. If use ...TransactionID..., it will return the correct results, how come?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 01:20:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-all-events-by-same-transaction/m-p/77780#M19660</guid>
      <dc:creator>thinksplunk</dc:creator>
      <dc:date>2013-10-02T01:20:17Z</dc:date>
    </item>
  </channel>
</rss>

