<?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 How to group the results of a transaction? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246623#M73526</link>
    <description>&lt;P&gt;Hello, my search &lt;CODE&gt;basesearch|transaction attribute|table username, attribute&lt;/CODE&gt;&lt;BR /&gt;
As expected, this returns a table with groups of usernames that share a common value for the field "attribute":&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;username       attribute&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;HR /&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;user1                attribute1&lt;BR /&gt;
user2&lt;/P&gt;

&lt;H2&gt;user3&lt;/H2&gt;

&lt;P&gt;user1                attribute2&lt;BR /&gt;
user2                &lt;/P&gt;

&lt;H2&gt;user3                &lt;/H2&gt;

&lt;P&gt;user3     attribute3&lt;BR /&gt;
user4 &lt;BR /&gt;
user5&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;HR /&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;user3 attribute4&lt;BR /&gt;
user4 &lt;BR /&gt;
user5&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I am interested in creating a new table that condenses the table by groups of users while showing the attributes they have in common - something like this:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;username       attribute&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;HR /&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;user1                attribute1&lt;BR /&gt;
user2 attribute 2&lt;BR /&gt;
user3&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;HR /&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;user3     attribute3&lt;BR /&gt;
user4     attribute4&lt;BR /&gt;
user5&lt;BR /&gt;
Any suggestions?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;UPDATE WITH PICTURE TO CLARIFY DESIRED OUTCOME&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;basesearch|transaction attribute&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I believe the "transaction" command groups the users together who share the common attribute.  So the first table after the transaction command shows all of the users who share each attribute (singular) .  I want to see statistics based on users that share common attributes (plural).  Can you see the attachments?  &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1351i624BBDF0CA76F026/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1352i3CE025DB7BADE1A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2016 19:44:00 GMT</pubDate>
    <dc:creator>Phil219</dc:creator>
    <dc:date>2016-05-11T19:44:00Z</dc:date>
    <item>
      <title>How to group the results of a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246623#M73526</link>
      <description>&lt;P&gt;Hello, my search &lt;CODE&gt;basesearch|transaction attribute|table username, attribute&lt;/CODE&gt;&lt;BR /&gt;
As expected, this returns a table with groups of usernames that share a common value for the field "attribute":&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;username       attribute&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;HR /&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;user1                attribute1&lt;BR /&gt;
user2&lt;/P&gt;

&lt;H2&gt;user3&lt;/H2&gt;

&lt;P&gt;user1                attribute2&lt;BR /&gt;
user2                &lt;/P&gt;

&lt;H2&gt;user3                &lt;/H2&gt;

&lt;P&gt;user3     attribute3&lt;BR /&gt;
user4 &lt;BR /&gt;
user5&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;HR /&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;user3 attribute4&lt;BR /&gt;
user4 &lt;BR /&gt;
user5&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I am interested in creating a new table that condenses the table by groups of users while showing the attributes they have in common - something like this:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;username       attribute&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;HR /&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;user1                attribute1&lt;BR /&gt;
user2 attribute 2&lt;BR /&gt;
user3&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;HR /&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;user3     attribute3&lt;BR /&gt;
user4     attribute4&lt;BR /&gt;
user5&lt;BR /&gt;
Any suggestions?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;UPDATE WITH PICTURE TO CLARIFY DESIRED OUTCOME&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;basesearch|transaction attribute&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I believe the "transaction" command groups the users together who share the common attribute.  So the first table after the transaction command shows all of the users who share each attribute (singular) .  I want to see statistics based on users that share common attributes (plural).  Can you see the attachments?  &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1351i624BBDF0CA76F026/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1352i3CE025DB7BADE1A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 19:44:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246623#M73526</guid>
      <dc:creator>Phil219</dc:creator>
      <dc:date>2016-05-11T19:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to group the results of a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246624#M73527</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;basesearch|transaction attribute|table username, attribute | mvexpand username | stats values(attribute ) as attribute by username
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 May 2016 19:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246624#M73527</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-11T19:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to group the results of a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246625#M73528</link>
      <description>&lt;P&gt;Looks like it might work - let me give it a go&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 23:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246625#M73528</guid>
      <dc:creator>Phil219</dc:creator>
      <dc:date>2016-05-11T23:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to group the results of a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246626#M73529</link>
      <description>&lt;P&gt;Unfortunately, this did not do what I am hoping.  &lt;/P&gt;

&lt;P&gt;I was hoping for a table that kept the groupings of users per row (user1,user2and user3 in one group with all of the values of the attributes associated with that group of users in the next collumn of the same row, with user4,user5,and user6 in the next row with all of the attributes associated with that group of users in the next column of that same row):&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;username  attribute&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;HR /&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;user1 attribute 1 &lt;BR /&gt;
user2 attribute 2&lt;/P&gt;

&lt;H2&gt;user3&lt;/H2&gt;

&lt;P&gt;user4 attribute3&lt;BR /&gt;
user5 attribute4&lt;BR /&gt;
user6&lt;BR /&gt;
This search (I apologize for the format, for some reason I cannot format this as code):&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;PRE&gt;&lt;CODE&gt; basesearch|transaction attribute|table username, attribute | mvexpand username | stats values(attribute ) as attribute by username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;returned each username individually with all of the attributes associated with that individual&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;username  attribute&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;HR /&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;user1 attribute 1 &lt;/P&gt;

&lt;H2&gt;_______attribute 2&lt;/H2&gt;

&lt;P&gt;user2 attribute1&lt;/P&gt;

&lt;H2&gt;_______attribute2&lt;/H2&gt;

&lt;P&gt;user3 attribute3 &lt;/P&gt;

&lt;H2&gt;_______attribute4&lt;/H2&gt;

&lt;P&gt;user4 attribute3&lt;/P&gt;

&lt;H2&gt;_______attribute4&lt;/H2&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Any other suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 23:54:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246626#M73529</guid>
      <dc:creator>Phil219</dc:creator>
      <dc:date>2016-05-11T23:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to group the results of a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246627#M73530</link>
      <description>&lt;P&gt;How do you decide which user belongs in which group? Is it always 1-2-3, 4-5-6-, 7-8-9 etc?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 00:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246627#M73530</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-12T00:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to group the results of a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246628#M73531</link>
      <description>&lt;P&gt;First sundareshr, thank you for your persistance in assistance.  I appreciate your help.  I updated my question with some pictures.  I think my attempt at creating a table within this web-browser is more confusing than helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 05:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246628#M73531</guid>
      <dc:creator>Phil219</dc:creator>
      <dc:date>2016-05-12T05:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to group the results of a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246629#M73532</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;basesearch|stats values(username) as username by attribute delim="," | nomv username 
| stats values(attribute) as attribute by username | makemv username delim=","
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 May 2016 06:55:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246629#M73532</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-12T06:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to group the results of a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246630#M73533</link>
      <description>&lt;P&gt;Thanks for the response!  Let me give this a shot&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 21:20:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246630#M73533</guid>
      <dc:creator>Phil219</dc:creator>
      <dc:date>2016-05-12T21:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to group the results of a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246631#M73534</link>
      <description>&lt;H2&gt;Nice!!! This works great!&lt;/H2&gt;

&lt;P&gt;I'm going to have to read up on "&lt;STRONG&gt;delim&lt;/STRONG&gt;", "&lt;STRONG&gt;nomv&lt;/STRONG&gt;" and "&lt;STRONG&gt;makemv&lt;/STRONG&gt;"&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 21:26:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-the-results-of-a-transaction/m-p/246631#M73534</guid>
      <dc:creator>Phil219</dc:creator>
      <dc:date>2016-05-12T21:26:17Z</dc:date>
    </item>
  </channel>
</rss>

