<?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 Column chart based on field value, without everything being the &amp;quot;count&amp;quot; field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Column-chart-based-on-field-value-without-everything-being-the/m-p/379019#M111075</link>
    <description>&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/6785i5144425E76E7000D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Currently having a hard time figuring out how to create a column chart where the field values show up in the side, so I can color code them in XML.  &lt;/P&gt;

&lt;P&gt;My query is bringing back the results into a table, which I then pipe into a count command to create this column chart.  The chart is exactly the info I want to see, I just can't figure out how to make color code it, since it's all the "count" field in XML.  &lt;/P&gt;

&lt;P&gt;| Parent search query&lt;BR /&gt;
| table Name, (other fields)&lt;BR /&gt;
| stats count by Name&lt;/P&gt;

&lt;P&gt;I've looked all over, but just can't figure it out.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2019 13:41:15 GMT</pubDate>
    <dc:creator>jwiley_splunk</dc:creator>
    <dc:date>2019-03-25T13:41:15Z</dc:date>
    <item>
      <title>Column chart based on field value, without everything being the "count" field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-chart-based-on-field-value-without-everything-being-the/m-p/379019#M111075</link>
      <description>&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/6785i5144425E76E7000D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Currently having a hard time figuring out how to create a column chart where the field values show up in the side, so I can color code them in XML.  &lt;/P&gt;

&lt;P&gt;My query is bringing back the results into a table, which I then pipe into a count command to create this column chart.  The chart is exactly the info I want to see, I just can't figure out how to make color code it, since it's all the "count" field in XML.  &lt;/P&gt;

&lt;P&gt;| Parent search query&lt;BR /&gt;
| table Name, (other fields)&lt;BR /&gt;
| stats count by Name&lt;/P&gt;

&lt;P&gt;I've looked all over, but just can't figure it out.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 13:41:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-chart-based-on-field-value-without-everything-being-the/m-p/379019#M111075</guid>
      <dc:creator>jwiley_splunk</dc:creator>
      <dc:date>2019-03-25T13:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Column chart based on field value, without everything being the "count" field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-chart-based-on-field-value-without-everything-being-the/m-p/379020#M111076</link>
      <description>&lt;P&gt;@jwiley_splunk ,&lt;/P&gt;

&lt;P&gt;Try &lt;CODE&gt;transpose&lt;/CODE&gt; ing it&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| Parent search query
| table Name, (other fields)
| stats count by Name
| transpose 0 header_field=Name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Mar 2019 14:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-chart-based-on-field-value-without-everything-being-the/m-p/379020#M111076</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-03-25T14:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Column chart based on field value, without everything being the "count" field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-chart-based-on-field-value-without-everything-being-the/m-p/379021#M111077</link>
      <description>&lt;P&gt;That's almost perfect!  &lt;/P&gt;

&lt;P&gt;Is there a way to get the original labels back under the columns?  &lt;IMG src="https://i.imgur.com/7iq8J5Q.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 14:45:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-chart-based-on-field-value-without-everything-being-the/m-p/379021#M111077</guid>
      <dc:creator>jwiley_splunk</dc:creator>
      <dc:date>2019-03-25T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Column chart based on field value, without everything being the "count" field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-chart-based-on-field-value-without-everything-being-the/m-p/379022#M111078</link>
      <description>&lt;P&gt;@jwiley_splunk ,&lt;BR /&gt;
Try this and select "stacked" in the format&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | Parent search query
 | table Name, (other fields)
 | eval _tmp=Name
 | chart count over Name by _tmp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Mar 2019 14:59:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-chart-based-on-field-value-without-everything-being-the/m-p/379022#M111078</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-03-25T14:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Column chart based on field value, without everything being the "count" field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-chart-based-on-field-value-without-everything-being-the/m-p/379023#M111079</link>
      <description>&lt;P&gt;You're a saint.  Thank you so much Renjith!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 15:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-chart-based-on-field-value-without-everything-being-the/m-p/379023#M111079</guid>
      <dc:creator>jwiley_splunk</dc:creator>
      <dc:date>2019-03-25T15:10:36Z</dc:date>
    </item>
  </channel>
</rss>

