<?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 How do I create a pie chart based on total vs specific app logins? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629954#M51661</link>
    <description>&lt;P&gt;I am looking to create a simple pie chart that contrasts the total number of users during any give timeframe vs how many logged into a specific app. I am probably over thinking this, but what I did is a search for distinct_count of users during a period and then joined another search that calculates the distinct_count of users that logged into a specific app over that same period. For example:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="okta" "outcome.result"=SUCCESS displayMessage="User single sign on to app"
| stats dc(actor.alternateId) as "Total Logins"
| join [ | search index="okta" "target{}.displayName"="Palo Alto Networks - Prisma Access"  "outcome.result"=SUCCESS displayMessage="User single sign on to app"
| stats dc(actor.alternateId) as "Total Palo Logins"]
| table  "Total Palo Logins" "Total Logins"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Only issue is I can't get a proper pie graph of the percentage of Palo Logins vs Total Logins. Any help would be appreciated. I am sure I am missing something simple here.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 16:42:16 GMT</pubDate>
    <dc:creator>daveywfii</dc:creator>
    <dc:date>2023-02-08T16:42:16Z</dc:date>
    <item>
      <title>How do I create a pie chart based on total vs specific app logins?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629954#M51661</link>
      <description>&lt;P&gt;I am looking to create a simple pie chart that contrasts the total number of users during any give timeframe vs how many logged into a specific app. I am probably over thinking this, but what I did is a search for distinct_count of users during a period and then joined another search that calculates the distinct_count of users that logged into a specific app over that same period. For example:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="okta" "outcome.result"=SUCCESS displayMessage="User single sign on to app"
| stats dc(actor.alternateId) as "Total Logins"
| join [ | search index="okta" "target{}.displayName"="Palo Alto Networks - Prisma Access"  "outcome.result"=SUCCESS displayMessage="User single sign on to app"
| stats dc(actor.alternateId) as "Total Palo Logins"]
| table  "Total Palo Logins" "Total Logins"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Only issue is I can't get a proper pie graph of the percentage of Palo Logins vs Total Logins. Any help would be appreciated. I am sure I am missing something simple here.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 16:42:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629954#M51661</guid>
      <dc:creator>daveywfii</dc:creator>
      <dc:date>2023-02-08T16:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart based on total vs specific app logins</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629956#M51662</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can try using the transpose command to return your rows as columns, so you can get a pie chart from your query.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="okta" "outcome.result"=SUCCESS displayMessage="User single sign on to app"
| stats dc(actor.alternateId) as "Total Logins"
| join [ | search index="okta" "target{}.displayName"="Palo Alto Networks - Prisma Access"  "outcome.result"=SUCCESS displayMessage="User single sign on to app"
| stats dc(actor.alternateId) as "Total Palo Logins"]
| table  "Total Palo Logins" "Total Logins"
| transpose&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 18:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629956#M51662</guid>
      <dc:creator>caiosalonso</dc:creator>
      <dc:date>2023-02-07T18:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart based on total vs specific app logins</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629967#M51664</link>
      <description>&lt;P&gt;So this gets me a pie graph of Total Logins and Total Palo Logins, but I wanted a pie graph of the total palo logins as percentage of the total and not as two separate percentages in the graph.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 19:12:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629967#M51664</guid>
      <dc:creator>daveywfii</dc:creator>
      <dc:date>2023-02-07T19:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart based on total vs specific app logins</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629975#M51665</link>
      <description>&lt;P&gt;Undesrtood. Now I tried to eval two new fields that would be the percentage of Palo Alto Logins and Total Logins, and them I used the transpose to return rows as columns. Is this the results you expect?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="okta" "outcome.result"=SUCCESS displayMessage="User single sign on to app"
| stats dc(actor.alternateId) as "Total Logins"
| join [ | search index="okta" "target{}.displayName"="Palo Alto Networks - Prisma Access"  "outcome.result"=SUCCESS displayMessage="User single sign on to app"
| stats dc(actor.alternateId) as "Total Palo Logins"]
| table  "Total Palo Logins", "Total Logins"
| eval "Total Palo Logins Percentage" = round("Total Palo Logins"*100/"Total Logins", 2)
| eval "Total Logins Percentage" = 100 - round("Total Palo Logins"*100/"Total Logins", 2)
| table "Total Palo Logins Percentage", "Total Logins Percentage"
| transpose&lt;/LI-CODE&gt;&lt;P&gt;Don't know if this was the best way to calculate the percentage, but It seems to be working.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 19:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629975#M51665</guid>
      <dc:creator>caiosalonso</dc:creator>
      <dc:date>2023-02-07T19:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart based on total vs specific app logins</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629981#M51667</link>
      <description>&lt;P&gt;Hey thanks for the suggestion. It worked as long as I used single quotes inside the (), but I ended up going a "simpler" way to display the difference between them.&lt;BR /&gt;&lt;BR /&gt;index="okta" "outcome.result"=SUCCESS displayMessage="User single sign on to app"&lt;BR /&gt;| stats dc(actor.alternateId) as "Total Logins"&lt;BR /&gt;| join [ | search index="okta" "target{}.displayName"="Palo Alto Networks - Prisma Access" "outcome.result"=SUCCESS displayMessage="User single sign on to app"&lt;BR /&gt;| stats dc(actor.alternateId) as "Users Logging into Prisma"]&lt;BR /&gt;| table "Users Logging into Prisma", "Total Logins"&lt;BR /&gt;| eval "Users Not Using Prisma"=('Total Logins' - 'Users Logging into Prisma')&lt;BR /&gt;| table "Users Logging into Prisma", "Users Not Using Prisma"&lt;BR /&gt;| transpose&lt;/P&gt;&lt;P&gt;As a side question, how are you doing the markup to designate SPL?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 20:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629981#M51667</guid>
      <dc:creator>daveywfii</dc:creator>
      <dc:date>2023-02-07T20:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart based on total vs specific app logins</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629983#M51668</link>
      <description>&lt;P&gt;Good it helped you.&lt;/P&gt;&lt;P&gt;I use the option to insert code on the formatting tab, as HTML/XML. It doesn't have an option for SPL, but It makes the code more clear to read.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="caiosalonso_0-1675800938102.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23763i9A95A7EC6E8C9673/image-size/medium?v=v2&amp;amp;px=400" role="button" title="caiosalonso_0-1675800938102.png" alt="caiosalonso_0-1675800938102.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 20:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-pie-chart-based-on-total-vs-specific-app/m-p/629983#M51668</guid>
      <dc:creator>caiosalonso</dc:creator>
      <dc:date>2023-02-07T20:16:30Z</dc:date>
    </item>
  </channel>
</rss>

