<?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: Manipulating a Table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124481#M33652</link>
    <description>&lt;P&gt;Values wont work as it show only the unique value. I want to show all values.&lt;/P&gt;

&lt;P&gt;Thanks for your thoughts !!!&lt;/P&gt;

&lt;P&gt;KKN&lt;/P&gt;</description>
    <pubDate>Fri, 19 Sep 2014 03:40:32 GMT</pubDate>
    <dc:creator>KarunK</dc:creator>
    <dc:date>2014-09-19T03:40:32Z</dc:date>
    <item>
      <title>Manipulating a Table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124479#M33650</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a following table. Total is the sum of the cost of items by country  using eventstats. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   Country      Items   cost    Total
    US      pen     3       6
    US      pencil  2       6
    US      paper   1       6
    UK      pen     6       12
    UK      pencil  3       12
    UK      paper   3       12
    HK      pen     4       7.5
    HK      pencil  2.5     7.5
    HK      paper   1       7.5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to modify the table to look like below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Country Items   cost    Total
US  pen 3   6
    pencil  2   
    paper   1   
UK  pen 6   12
    pencil  3   
    paper   3   
HK  pen 4   7.5
    pencil  2.5 
    paper   1   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have played around with stats values function but of no use. Any ideas ???&lt;/P&gt;

&lt;P&gt;Thanks in Advance.&lt;/P&gt;

&lt;P&gt;KK&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2014 23:34:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124479#M33650</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2014-09-14T23:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating a Table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124480#M33651</link>
      <description>&lt;P&gt;Hi KarunK,&lt;/P&gt;

&lt;P&gt;take this run everywhere example and adapt it to your needs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd 
| eventstats count AS myCount by series 
| stats list(series) AS series list(myCount) AS count sum(myCount) AS total by sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will return something similar to your target.&lt;/P&gt;

&lt;P&gt;hope this helps...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2014 07:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124480#M33651</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-09-15T07:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating a Table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124481#M33652</link>
      <description>&lt;P&gt;Values wont work as it show only the unique value. I want to show all values.&lt;/P&gt;

&lt;P&gt;Thanks for your thoughts !!!&lt;/P&gt;

&lt;P&gt;KKN&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 03:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124481#M33652</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2014-09-19T03:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating a Table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124482#M33653</link>
      <description>&lt;P&gt;Use list instead of values in that case &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 04:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124482#M33653</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-09-19T04:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating a Table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124483#M33654</link>
      <description>&lt;P&gt;Great !!! Issue resolved....&lt;BR /&gt;
Thanks Mate ...&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2014 05:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124483#M33654</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2014-09-22T05:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating a Table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124484#M33655</link>
      <description>&lt;P&gt;please mark this as answered, thx&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2014 05:22:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manipulating-a-Table/m-p/124484#M33655</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-09-22T05:22:41Z</dc:date>
    </item>
  </channel>
</rss>

