<?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: Pie chart creation using multiple KPIs in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494195#M32361</link>
    <description>&lt;P&gt;I have tried to join like below&lt;/P&gt;

&lt;P&gt;index=nonprod kubernetes.container_name=tpt  MESSAGE = "&lt;EM&gt;Code request&lt;/EM&gt;"  | spath output=msg path=MESSAGE  | table msg &lt;BR /&gt;
| join msg [search index=nonprod kubernetes.container_name=rsv MESSAGE = "&lt;EM&gt;pin in email&lt;/EM&gt;" | spath output=msg path=MESSAGE | table msg]&lt;BR /&gt;
| join msg [search index=nonprod kubernetes.container_name=rsw MESSAGE = "&lt;EM&gt;pin in sms&lt;/EM&gt;" | spath output=msg path=MESSAGE | table msg]&lt;BR /&gt;
| stats count&lt;/P&gt;

&lt;P&gt;But it results 600 only.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:32:57 GMT</pubDate>
    <dc:creator>rajusalmon1</dc:creator>
    <dc:date>2020-09-30T04:32:57Z</dc:date>
    <item>
      <title>Pie chart creation using multiple KPIs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494191#M32357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am new to Splunk dashboard development, so far I am creating KPI's using just 'single value'.&lt;/P&gt;

&lt;P&gt;I have three KPI's that resulted in 600, 250, 150.&lt;/P&gt;

&lt;P&gt;KPI 1 search expression - Result is 600 (example)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=indexname kubernetes.container_name=name1
MESSAGE = "*search for code1*"
| spath output=msg path=MSG
| table _time msg
| stats count as count1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;KPI 2 search expression - Result is 250 (example)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=indexname kubernetes.container_name=name2
MESSAGE = "*search for code2*"
| spath output=msg path=MSG
| table _time msg
| stats count as count2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;KPI 3 search expression - Result is 150 (example)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=indexname kubernetes.container_name=name3
MESSAGE = "*search for code3*"
| spath output=msg path=MSG
| table _time msg
| stats count as count3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have shown above KPI's as numbers in the dashboard. However, I would like show a pie chart with 60%, 25% and 15% share for above numbers. Could you anyone please help me what would be search expression to create this  chart?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;BR /&gt;
Raju&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 08:02:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494191#M32357</guid>
      <dc:creator>rajusalmon1</dc:creator>
      <dc:date>2020-03-11T08:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart creation using multiple KPIs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494192#M32358</link>
      <description>&lt;P&gt;hi @rajusalmon1 ,&lt;/P&gt;

&lt;P&gt;Add the below query to your dashboard, and select &lt;CODE&gt;pie chart&lt;/CODE&gt; visualization from the option.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=indexname kubernetes.container_name=name
MESSAGE IN ("search for code1","search for code2","search for code3")
| spath output=msg path=MSG
| table _time msg
| stats count by MESSAGE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;accept &amp;amp; up-vote the answer if it helps.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 13:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494192#M32358</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2020-03-11T13:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart creation using multiple KPIs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494193#M32359</link>
      <description>&lt;P&gt;Thank you gaurav. Sorry, I forgot to mention in actaul question that kubernetes.container_name is different for all 3 queries. Could you please let me know if it works in the same manner?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 13:30:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494193#M32359</guid>
      <dc:creator>rajusalmon1</dc:creator>
      <dc:date>2020-03-11T13:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart creation using multiple KPIs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494194#M32360</link>
      <description>&lt;P&gt;If I run below 3 queries separately result is (600,250,150) , I would need to join them and make a pie chart.&lt;/P&gt;

&lt;P&gt;index=nonprod kubernetes.container_name=tpt MESSAGE = "&lt;EM&gt;Code request&lt;/EM&gt;" &lt;BR /&gt;
| spath output=msg path=MESSAGE &lt;BR /&gt;
| table msg &lt;BR /&gt;
| stats count&lt;/P&gt;

&lt;P&gt;index=nonprod kubernetes.container_name=rsv MESSAGE = "&lt;EM&gt;pin in email&lt;/EM&gt;" &lt;BR /&gt;
| spath output=msg path=MESSAGE &lt;BR /&gt;
| table msg &lt;BR /&gt;
| stats count &lt;/P&gt;

&lt;P&gt;index=nonprod kubernetes.container_name=rsw MESSAGE = "&lt;EM&gt;pin in sms&lt;/EM&gt;" &lt;BR /&gt;
| spath output=msg path=MESSAGE &lt;BR /&gt;
| table msg &lt;BR /&gt;
| stats count&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 13:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494194#M32360</guid>
      <dc:creator>rajusalmon1</dc:creator>
      <dc:date>2020-03-11T13:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart creation using multiple KPIs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494195#M32361</link>
      <description>&lt;P&gt;I have tried to join like below&lt;/P&gt;

&lt;P&gt;index=nonprod kubernetes.container_name=tpt  MESSAGE = "&lt;EM&gt;Code request&lt;/EM&gt;"  | spath output=msg path=MESSAGE  | table msg &lt;BR /&gt;
| join msg [search index=nonprod kubernetes.container_name=rsv MESSAGE = "&lt;EM&gt;pin in email&lt;/EM&gt;" | spath output=msg path=MESSAGE | table msg]&lt;BR /&gt;
| join msg [search index=nonprod kubernetes.container_name=rsw MESSAGE = "&lt;EM&gt;pin in sms&lt;/EM&gt;" | spath output=msg path=MESSAGE | table msg]&lt;BR /&gt;
| stats count&lt;/P&gt;

&lt;P&gt;But it results 600 only.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:32:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494195#M32361</guid>
      <dc:creator>rajusalmon1</dc:creator>
      <dc:date>2020-09-30T04:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart creation using multiple KPIs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494196#M32362</link>
      <description>&lt;P&gt;try the below query,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nonprod kubernetes.container_name IN ("tpt", "rsv", "rsw") MESSAGE IN ("Code request", "pin in email", "pin in sms")
| spath output=msg path=MESSAGE 
| table msg 
| stats count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494196#M32362</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2020-03-12T13:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart creation using multiple KPIs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494197#M32363</link>
      <description>&lt;P&gt;No luck, returning 0 results. Thank for your help, we are trying log the info with extra field that will solve the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:50:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494197#M32363</guid>
      <dc:creator>rajusalmon1</dc:creator>
      <dc:date>2020-03-12T13:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart creation using multiple KPIs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494198#M32364</link>
      <description>&lt;P&gt;We are trying log the info with extra field that will solve the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494198#M32364</guid>
      <dc:creator>rajusalmon1</dc:creator>
      <dc:date>2020-03-12T13:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart creation using multiple KPIs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494199#M32365</link>
      <description>&lt;P&gt;can you provide one json event sample&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:56:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pie-chart-creation-using-multiple-KPIs/m-p/494199#M32365</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2020-03-12T13:56:23Z</dc:date>
    </item>
  </channel>
</rss>

