<?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: What is the best way to calculate the percentage of a query and transform it into a pie chart or two single value charts side by side? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-is-the-best-way-to-calculate-the-percentage-of-a-query-and/m-p/419213#M27621</link>
    <description>&lt;P&gt;If the events are in the same index you could simply add an OR in the search string and then extract the values you need with a rex extraction; something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search "upload succesful" OR  "[ERROR]"| rex "\&amp;gt; (?&amp;lt;result&amp;gt;.*)" | top result
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Oct 2018 08:37:42 GMT</pubDate>
    <dc:creator>jlelli</dc:creator>
    <dc:date>2018-10-08T08:37:42Z</dc:date>
    <item>
      <title>What is the best way to calculate the percentage of a query and transform it into a pie chart or two single value charts side by side?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-is-the-best-way-to-calculate-the-percentage-of-a-query-and/m-p/419212#M27620</link>
      <description>&lt;P&gt;What is the best way to calculate the percentage and transform it into a pie chart or two single value charts side by side :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  Condition for success =&amp;gt; message=Upload successful
  Condition for error = &amp;gt;  [ERROR]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please help I am not able to figure out the correct way?&lt;BR /&gt;
What I used to generate a single chart is very wrong I have to append for queries together to generate a result. &lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 05:58:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-is-the-best-way-to-calculate-the-percentage-of-a-query-and/m-p/419212#M27620</guid>
      <dc:creator>Navitas28</dc:creator>
      <dc:date>2018-10-08T05:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to calculate the percentage of a query and transform it into a pie chart or two single value charts side by side?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-is-the-best-way-to-calculate-the-percentage-of-a-query-and/m-p/419213#M27621</link>
      <description>&lt;P&gt;If the events are in the same index you could simply add an OR in the search string and then extract the values you need with a rex extraction; something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search "upload succesful" OR  "[ERROR]"| rex "\&amp;gt; (?&amp;lt;result&amp;gt;.*)" | top result
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Oct 2018 08:37:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-is-the-best-way-to-calculate-the-percentage-of-a-query-and/m-p/419213#M27621</guid>
      <dc:creator>jlelli</dc:creator>
      <dc:date>2018-10-08T08:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to calculate the percentage of a query and transform it into a pie chart or two single value charts side by side?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-is-the-best-way-to-calculate-the-percentage-of-a-query-and/m-p/419214#M27622</link>
      <description>&lt;P&gt;hi @Navitas28 &lt;/P&gt;

&lt;P&gt;Did the answer below solve your problem? If so, please resolve this post by approving it! If your problem is still not solved, keep us updated so that someone else can help ya. Thanks for posting!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 19:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-is-the-best-way-to-calculate-the-percentage-of-a-query-and/m-p/419214#M27622</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-10-08T19:02:46Z</dc:date>
    </item>
  </channel>
</rss>

