<?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 select just JSON properties and display it on a chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371132#M109228</link>
    <description>&lt;P&gt;What is missing criteria? What would corresponding event look like?&lt;/P&gt;

&lt;P&gt;Sorry I could not find a neat way to do this. Hopefully other would be able to assist however, you can count True and False per series and then append the results for each series i.e. Uniformance_Oracle_Access, FACTS_Access, Oracle_GG &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;
| table Uniformance_Oracle_Access
| chart count(eval(Uniformance_Oracle_Access=="True")) as True count(eval(Uniformance_Oracle_Access=="False")) as False
| eval Field="Uniformance_Oracle_Access"
| append [ &amp;lt;YourBaseSearch&amp;gt;
                    | table FACTS_Access
                    | chart count(eval(FACTS_Access=="True")) as True count(eval(FACTS_Access=="False")) as False
                    | eval Field="FACTS_Access"]
| append [ &amp;lt;YourBaseSearch&amp;gt;
                    | table Oracle_GG
                    | chart count(eval(Oracle_GG=="True")) as True count(eval(Oracle_GG=="False")) as False
                    | eval Field="Oracle_GG"]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you need to create Stacked Column Chart for these. There should be a better way to do this as I am running the same search three times for append and if the data being correlation is more append might silently drop data giving skewed results. Please see if this still works for you until someone provides a better solution.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:24:25 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2020-09-29T15:24:25Z</dc:date>
    <item>
      <title>How to select just JSON properties and display it on a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371129#M109225</link>
      <description>&lt;P&gt;How can I select the JSON properties and display them on a bar chart? Not their value, but their name. I need to build a bar chart similar to this one above, where the &lt;STRONG&gt;X axis&lt;/STRONG&gt; is the different &lt;STRONG&gt;NAMES&lt;/STRONG&gt; of JSON properties, the &lt;STRONG&gt;Y axis&lt;/STRONG&gt; is the &lt;STRONG&gt;COUNT&lt;/STRONG&gt; of each JSON propertie's values (there are three options: true, false and missing) and the &lt;STRONG&gt;colors&lt;/STRONG&gt; must be the JSON properties &lt;STRONG&gt;values&lt;/STRONG&gt;. &lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/209587-untitled.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;The json I have is:&lt;BR /&gt;
JsonData="{&lt;BR /&gt;
                     "Uniformance_Oracle_Access":"True"&lt;BR /&gt;
                     "FACTS_Access":"True"&lt;BR /&gt;
                     "Oracle_GG":"False"}"&lt;/P&gt;

&lt;P&gt;So far I was just able to display the values in the colors and do a Y-axis correctly, but the X-axis has been a real problem.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:22:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371129#M109225</guid>
      <dc:creator>gcescatto</dc:creator>
      <dc:date>2020-09-29T15:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to select just JSON properties and display it on a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371130#M109226</link>
      <description>&lt;P&gt;Where do you get the value for each of the columns? It is not present in your sample JSON&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 04:23:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371130#M109226</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-17T04:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to select just JSON properties and display it on a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371131#M109227</link>
      <description>&lt;P&gt;The values are "True" and "False". It comes from PowerShell scripts that store data in the database. So, my application is a dbconnect application.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 23:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371131#M109227</guid>
      <dc:creator>gcescatto</dc:creator>
      <dc:date>2017-08-18T23:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to select just JSON properties and display it on a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371132#M109228</link>
      <description>&lt;P&gt;What is missing criteria? What would corresponding event look like?&lt;/P&gt;

&lt;P&gt;Sorry I could not find a neat way to do this. Hopefully other would be able to assist however, you can count True and False per series and then append the results for each series i.e. Uniformance_Oracle_Access, FACTS_Access, Oracle_GG &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;
| table Uniformance_Oracle_Access
| chart count(eval(Uniformance_Oracle_Access=="True")) as True count(eval(Uniformance_Oracle_Access=="False")) as False
| eval Field="Uniformance_Oracle_Access"
| append [ &amp;lt;YourBaseSearch&amp;gt;
                    | table FACTS_Access
                    | chart count(eval(FACTS_Access=="True")) as True count(eval(FACTS_Access=="False")) as False
                    | eval Field="FACTS_Access"]
| append [ &amp;lt;YourBaseSearch&amp;gt;
                    | table Oracle_GG
                    | chart count(eval(Oracle_GG=="True")) as True count(eval(Oracle_GG=="False")) as False
                    | eval Field="Oracle_GG"]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you need to create Stacked Column Chart for these. There should be a better way to do this as I am running the same search three times for append and if the data being correlation is more append might silently drop data giving skewed results. Please see if this still works for you until someone provides a better solution.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:24:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371132#M109228</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T15:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to select just JSON properties and display it on a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371133#M109229</link>
      <description>&lt;P&gt;The colors that should be only "True", "False" or "Missing" are displaying "True" and "Field". I'm trying to fix this. But the table displayed seems correct. Thank you (:&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371133#M109229</guid>
      <dc:creator>gcescatto</dc:creator>
      <dc:date>2017-08-21T11:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to select just JSON properties and display it on a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371134#M109230</link>
      <description>&lt;P&gt;@gcescatto, I have converted my comment to answer. Please accept to mark the question as Answered. Please let us know if further help is required! &lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 12:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371134#M109230</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-21T12:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to select just JSON properties and display it on a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371135#M109231</link>
      <description>&lt;P&gt;Could you please help me change places "Field" and "True"? &lt;BR /&gt;
The table is correct, but the chart needs to be with "Field" at the X axis and "True" and "False" like colors. Sorry to bother, I'm new in Splunk.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 13:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-select-just-JSON-properties-and-display-it-on-a-chart/m-p/371135#M109231</guid>
      <dc:creator>gcescatto</dc:creator>
      <dc:date>2017-08-21T13:41:07Z</dc:date>
    </item>
  </channel>
</rss>

