<?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 values on the Flat\Untable multiple columns to get Trellis to work? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-on-the-Flat-Untable-multiple-columns-to-get/m-p/355304#M105138</link>
    <description>&lt;P&gt;Hello, either I'm missing something or this is impossible, I have a table like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Type,Model,Vendor,Total
A,100C,IBM,100
A,200C,Apple,50
B,25D,Apple,25
C,100C,Amazon,5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like the new Trellis visualization to provide a sum based on each column values, basically, this would save me creating lots of panels in dashboards.&lt;/P&gt;

&lt;P&gt;In a nutshell it's like running stats for each column: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=x|stats sum by Total, Model
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was trying to do the following:&lt;BR /&gt;
Unpivot\Untable all values of columns into 1 column, keep Total as a second column.&lt;/P&gt;

&lt;P&gt;The result should look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MyAttrib,Value,Total
--------------------------------
Type,A, 100
Model,100C, 100
Vendor,IBM, 100
Type,A, 50
Model,200C, 50
Vendor,Apple, 50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tested the values in a formatted table like this, and Trellis make it look awesome.&lt;/P&gt;

&lt;P&gt;How cool would it be to have a command like this to group values on dynamic columns on any given table? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Is that possible?&lt;/P&gt;</description>
    <pubDate>Sun, 04 Feb 2018 10:02:10 GMT</pubDate>
    <dc:creator>kuzkuz</dc:creator>
    <dc:date>2018-02-04T10:02:10Z</dc:date>
    <item>
      <title>How to group values on the Flat\Untable multiple columns to get Trellis to work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-on-the-Flat-Untable-multiple-columns-to-get/m-p/355304#M105138</link>
      <description>&lt;P&gt;Hello, either I'm missing something or this is impossible, I have a table like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Type,Model,Vendor,Total
A,100C,IBM,100
A,200C,Apple,50
B,25D,Apple,25
C,100C,Amazon,5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like the new Trellis visualization to provide a sum based on each column values, basically, this would save me creating lots of panels in dashboards.&lt;/P&gt;

&lt;P&gt;In a nutshell it's like running stats for each column: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=x|stats sum by Total, Model
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was trying to do the following:&lt;BR /&gt;
Unpivot\Untable all values of columns into 1 column, keep Total as a second column.&lt;/P&gt;

&lt;P&gt;The result should look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MyAttrib,Value,Total
--------------------------------
Type,A, 100
Model,100C, 100
Vendor,IBM, 100
Type,A, 50
Model,200C, 50
Vendor,Apple, 50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tested the values in a formatted table like this, and Trellis make it look awesome.&lt;/P&gt;

&lt;P&gt;How cool would it be to have a command like this to group values on dynamic columns on any given table? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Is that possible?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2018 10:02:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-on-the-Flat-Untable-multiple-columns-to-get/m-p/355304#M105138</guid>
      <dc:creator>kuzkuz</dc:creator>
      <dc:date>2018-02-04T10:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values on the Flat\Untable multiple columns to get Trellis to work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-on-the-Flat-Untable-multiple-columns-to-get/m-p/355305#M105139</link>
      <description>&lt;P&gt;Might as well answer my own question.&lt;/P&gt;

&lt;P&gt;The solution was simple, just using Untable with the &lt;CODE&gt;"Total"&lt;/CODE&gt; field as the first argument (or use any other filed with Count)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mydata|untable Count,Column,Value|stats sum(total) by Column,Value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Look at all the pretty pie charts!&lt;/P&gt;

&lt;P&gt;Sample search on forwarders data: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*metrics.log|table *|untable index,column,value|stats count(index) by column,value
&lt;/CODE&gt;&lt;/PRE&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/4298i8253CB385F9A186A/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>Mon, 05 Feb 2018 16:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-on-the-Flat-Untable-multiple-columns-to-get/m-p/355305#M105139</guid>
      <dc:creator>kuzkuz</dc:creator>
      <dc:date>2018-02-05T16:07:20Z</dc:date>
    </item>
  </channel>
</rss>

