<?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: Condensing multiple table rows into one row in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Condensing-multiple-table-rows-into-one-row/m-p/138653#M184792</link>
    <description>&lt;P&gt;You can try stats. something like this&lt;/P&gt;

&lt;P&gt;your existing search (with output 1 above) | stats first(*) as * by username&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2014 16:48:35 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-04-22T16:48:35Z</dc:date>
    <item>
      <title>Condensing multiple table rows into one row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Condensing-multiple-table-rows-into-one-row/m-p/138652#M184791</link>
      <description>&lt;P&gt;I'm working with a database as my source (through DB Connect) and performing a bunch of different evals. When I go to output it looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**username      JanTotal   FebTotal   MarTotal**
user1            5
user1                         12
user1                                    8
user2            1
user2                         6
user2                                    3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And so on for multiple users. Try as I might, I can't get it to display simply as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user1            5            12         8
user2            1             6         3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there an easy way to condense these rows into a single row by username? I'll even take a hard way.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 16:33:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Condensing-multiple-table-rows-into-one-row/m-p/138652#M184791</guid>
      <dc:creator>willial</dc:creator>
      <dc:date>2014-04-22T16:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Condensing multiple table rows into one row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Condensing-multiple-table-rows-into-one-row/m-p/138653#M184792</link>
      <description>&lt;P&gt;You can try stats. something like this&lt;/P&gt;

&lt;P&gt;your existing search (with output 1 above) | stats first(*) as * by username&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 16:48:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Condensing-multiple-table-rows-into-one-row/m-p/138653#M184792</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-22T16:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Condensing multiple table rows into one row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Condensing-multiple-table-rows-into-one-row/m-p/138654#M184793</link>
      <description>&lt;P&gt;Yup, &lt;CODE&gt;stats first(*) as * by username&lt;/CODE&gt; is the way to go as long as each field only has up to one value per username.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 17:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Condensing-multiple-table-rows-into-one-row/m-p/138654#M184793</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-22T17:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Condensing multiple table rows into one row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Condensing-multiple-table-rows-into-one-row/m-p/138655#M184794</link>
      <description>&lt;P&gt;Works perfectly! Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 18:19:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Condensing-multiple-table-rows-into-one-row/m-p/138655#M184794</guid>
      <dc:creator>willial</dc:creator>
      <dc:date>2014-04-22T18:19:12Z</dc:date>
    </item>
  </channel>
</rss>

