<?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 to group togeher the rows based on some field value in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/567007#M197592</link>
    <description>&lt;P&gt;Just wanted to add, that those, who want all of their fields to be grouped, can use the asterisk -- instead of painstakingly enumerating them all (and then re-enumerating, when the field-set changes).&lt;/P&gt;&lt;P&gt;This works for all regular fields -- but not for the special ones (like &lt;FONT face="andale mono,times"&gt;_time&lt;/FONT&gt;), those still must be listed explicitly:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(*), values(_time), values(_raw) by eventID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Sep 2021 18:21:19 GMT</pubDate>
    <dc:creator>unitedmarsupial</dc:creator>
    <dc:date>2021-09-14T18:21:19Z</dc:date>
    <item>
      <title>How to group togeher the rows based on some field value in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/71133#M180787</link>
      <description>&lt;P&gt;I am having a search in my view code and displaying results in the form of table.&lt;BR /&gt;
small example result:&lt;BR /&gt;
custid    Eventid&lt;BR /&gt;
10001     200&lt;BR /&gt;
10001     300&lt;BR /&gt;
10002     200&lt;BR /&gt;
10002     100&lt;BR /&gt;
10002     300&lt;/P&gt;

&lt;P&gt;This time each line is coming in each row. Can we group together the same custid with different values on eventid as one row like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        custID   eventid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;first row -&amp;gt;10001    200&lt;BR /&gt;
                     300&lt;BR /&gt;
second row-&amp;gt;10002    200&lt;BR /&gt;
                     100&lt;BR /&gt;
                     300&lt;/P&gt;

&lt;P&gt;Is there is any way to do that.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2012 01:16:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/71133#M180787</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2012-09-26T01:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to group togeher the rows based on some field value in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/71134#M180788</link>
      <description>&lt;P&gt;Try these: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;...my search here... | stats list(custID) by eventID&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or, if you want unique &lt;CODE&gt;custID&lt;/CODE&gt;: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;...my search here... | stats values(custID) by eventID&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps, &lt;/P&gt;

&lt;P&gt;d.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2012 01:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/71134#M180788</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2012-09-26T01:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to group togeher the rows based on some field value in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/71135#M180789</link>
      <description>&lt;P&gt;Thanks. this thing worked. I need to show some more columns so i just added like &lt;BR /&gt;
|stats list(eventid), list(time), list(description) by custid&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 00:06:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/71135#M180789</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2012-09-28T00:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to group togeher the rows based on some field value in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/71136#M180790</link>
      <description>&lt;P&gt;After grouping the fields into one list, how do I make this list comma separated?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 19:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/71136#M180790</guid>
      <dc:creator>vsingla1</dc:creator>
      <dc:date>2016-03-31T19:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to group togeher the rows based on some field value in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/71137#M180791</link>
      <description>&lt;P&gt;This query "stats values(custID) by eventID" worked for me.  Over here, how to count the list of custID's and display it in a table?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 02:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/71137#M180791</guid>
      <dc:creator>gokulakrishnans</dc:creator>
      <dc:date>2018-07-05T02:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to group togeher the rows based on some field value in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/567007#M197592</link>
      <description>&lt;P&gt;Just wanted to add, that those, who want all of their fields to be grouped, can use the asterisk -- instead of painstakingly enumerating them all (and then re-enumerating, when the field-set changes).&lt;/P&gt;&lt;P&gt;This works for all regular fields -- but not for the special ones (like &lt;FONT face="andale mono,times"&gt;_time&lt;/FONT&gt;), those still must be listed explicitly:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(*), values(_time), values(_raw) by eventID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 18:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/567007#M197592</guid>
      <dc:creator>unitedmarsupial</dc:creator>
      <dc:date>2021-09-14T18:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to group togeher the rows based on some field value in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/567008#M197593</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149338"&gt;@vsingla1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;After grouping the fields into one list, how do I make this list comma separated?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is, what I have somewhere already -- the field Mnemonic (singular), specific to every event, is grouped into Mnemonics (plural), which is then passed to multi-value join:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats values(Mnemonic) as Mnemonics
| eval Mnemonics=mvjoin(Mnemonics, ",")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 18:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-togeher-the-rows-based-on-some-field-value-in/m-p/567008#M197593</guid>
      <dc:creator>unitedmarsupial</dc:creator>
      <dc:date>2021-09-14T18:24:12Z</dc:date>
    </item>
  </channel>
</rss>

