<?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 use stack mode on a bar chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-stack-mode-on-a-bar-chart/m-p/370414#M109060</link>
    <description>&lt;P&gt;The stack mode is not the problem... The main problem is how to display Json fields in the X axis, the count of each of them in the Y axis (how many "FACTS Access" are true, for example) and the colors should be the values of each of them. &lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2017 11:41:03 GMT</pubDate>
    <dc:creator>gcescatto</dc:creator>
    <dc:date>2017-08-16T11:41:03Z</dc:date>
    <item>
      <title>How to use stack mode on a bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-stack-mode-on-a-bar-chart/m-p/370412#M109058</link>
      <description>&lt;P&gt;I have many Json that contains multiple fields such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"FACTS Access":"True",
"FACTS Database Access":"True",
"Uniformance Oracle Access":"True",
"FACTS Lan Folder Access":"False",
"Uniformance Access":"True"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Each of these fields support "TRUE"/"FALSE"/"MISSING" values.&lt;BR /&gt;
What I need to do is create a dashboard as the one displayed above where the X axis is composed by Json fields and the Y axis is the count of each of the results these fields support.&lt;/P&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/3360iCA94D341234460B0/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>Tue, 15 Aug 2017 20:42:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-stack-mode-on-a-bar-chart/m-p/370412#M109058</guid>
      <dc:creator>gcescatto</dc:creator>
      <dc:date>2017-08-15T20:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use stack mode on a bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-stack-mode-on-a-bar-chart/m-p/370413#M109059</link>
      <description>&lt;P&gt;Try like this (select column chart with Stack Mode as 'stacked')&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=bar | table _raw | spath | fields - _raw | eval temp=1 
| untable temp Metrics Value | chart count by Metrics Value
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Aug 2017 20:58:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-stack-mode-on-a-bar-chart/m-p/370413#M109059</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-15T20:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use stack mode on a bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-stack-mode-on-a-bar-chart/m-p/370414#M109060</link>
      <description>&lt;P&gt;The stack mode is not the problem... The main problem is how to display Json fields in the X axis, the count of each of them in the Y axis (how many "FACTS Access" are true, for example) and the colors should be the values of each of them. &lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-stack-mode-on-a-bar-chart/m-p/370414#M109060</guid>
      <dc:creator>gcescatto</dc:creator>
      <dc:date>2017-08-16T11:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use stack mode on a bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-stack-mode-on-a-bar-chart/m-p/370415#M109061</link>
      <description>&lt;P&gt;I need each of the fields to be a column in the chart:&lt;/P&gt;

&lt;P&gt;index=msahc | rex "(?{[^}]+})" | mvexpand json_field | spath input=json_field | search ACT | eval DateTime=_time | convert timeformat="%x" ctime(DateTime) | bucket DateTime span=1d | rename "Uniformance Oracle Access" as "Uniformance_Oracle_Access", "Uniformance Access" as "Uniformance_Access", "FACTS Access" as "FACTS_Access", "Oracle GG" as "Oracle_GG", "IDM Access" as "IDM_Access", "FACTS Database Access" as "FACTS_Database_Access", "FACTS Lan Folder Access" as "FACTS_Lan_Folder_Access" | table ServerName, Uniformance_Oracle_Access, Uniformance_Access, FACTS_Access, Oracle_GG, IDM_Access, FACTS_Database_Access, FACTS_Lan_Folder_Access&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:22:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-stack-mode-on-a-bar-chart/m-p/370415#M109061</guid>
      <dc:creator>gcescatto</dc:creator>
      <dc:date>2020-09-29T15:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use stack mode on a bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-stack-mode-on-a-bar-chart/m-p/370416#M109062</link>
      <description>&lt;P&gt;Just add this to your current search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search  | eval temp=1 
 | untable temp Metrics Value | chart count by Metrics Value
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Aug 2017 15:28:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-stack-mode-on-a-bar-chart/m-p/370416#M109062</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-16T15:28:46Z</dc:date>
    </item>
  </channel>
</rss>

