<?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 for 2 fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-pie-chart-for-two-fields/m-p/638557#M221273</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for this , but only having VERB in pie chart will not help for my case.&lt;/P&gt;&lt;P&gt;Is there any possibility to join VERB and OBJECT to a single field and make that field in chart command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example,&lt;/P&gt;&lt;P&gt;VERB=get OBJECT=customer status&lt;/P&gt;&lt;P&gt;new_field="get customer status"&lt;/P&gt;&lt;P&gt;IN query:&lt;/P&gt;&lt;P&gt;chart count by new_field.&lt;/P&gt;&lt;P&gt;Please let me know if this is possible.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2023 06:08:06 GMT</pubDate>
    <dc:creator>Dharani</dc:creator>
    <dc:date>2023-04-04T06:08:06Z</dc:date>
    <item>
      <title>How to create pie chart for two fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-pie-chart-for-two-fields/m-p/638381#M221250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have service name verb, object and outcome. I need to show the statistics in pie chart.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example,&lt;/P&gt;
&lt;P&gt;index=abc (SUBJECT="Access"&amp;nbsp; AND OBJECT="status" AND VERB="Get") OR (SUBJECT="Customer Service" AND VERB=Get AND OBJECT="Customer status") OR (SUBJECT="Agreement service" AND OBJECT="attachments" AND VERB="Create")&amp;nbsp;&lt;BR /&gt;| search OUTCOME=FAILURE&lt;BR /&gt;| chart count by VERB,OBJECT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;VERB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Customer status&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;attachments&lt;/P&gt;
&lt;P&gt;Get&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;Create&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I am looking for is to show that 2 failures for create attachments and 3 failures for get customer status in Pie Chart format. But above query is not working like that , it is only showing one field in the pie chart which is not use ful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help on this.&lt;/P&gt;
&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 10:35:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-pie-chart-for-two-fields/m-p/638381#M221250</guid>
      <dc:creator>Dharani</dc:creator>
      <dc:date>2023-04-04T10:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart for 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-pie-chart-for-two-fields/m-p/638408#M221259</link>
      <description>&lt;P&gt;By definition, pie chart visualizes a one-dimensional function. &amp;nbsp;When you use two fields in groupby, that creates a two-dimensional function. &amp;nbsp;Drop OBJECT.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc (SUBJECT="Access"  AND OBJECT="status" AND VERB="Get") OR (SUBJECT="Customer Service" AND VERB=Get AND OBJECT="Customer status") OR (SUBJECT="Agreement service" AND OBJECT="attachments" AND VERB="Create") 
| search OUTCOME=FAILURE
| chart count by VERB&lt;/LI-CODE&gt;&lt;P&gt;The caveat is that you must have positive knowledge that OBJECT and VERB are diagonal as your illustrated data show. &amp;nbsp;Otherwise you need to assess whether the results still suite your need.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 15:22:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-pie-chart-for-two-fields/m-p/638408#M221259</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-04-03T15:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart for 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-pie-chart-for-two-fields/m-p/638557#M221273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for this , but only having VERB in pie chart will not help for my case.&lt;/P&gt;&lt;P&gt;Is there any possibility to join VERB and OBJECT to a single field and make that field in chart command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example,&lt;/P&gt;&lt;P&gt;VERB=get OBJECT=customer status&lt;/P&gt;&lt;P&gt;new_field="get customer status"&lt;/P&gt;&lt;P&gt;IN query:&lt;/P&gt;&lt;P&gt;chart count by new_field.&lt;/P&gt;&lt;P&gt;Please let me know if this is possible.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 06:08:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-pie-chart-for-two-fields/m-p/638557#M221273</guid>
      <dc:creator>Dharani</dc:creator>
      <dc:date>2023-04-04T06:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart for 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-pie-chart-for-two-fields/m-p/638572#M221278</link>
      <description>&lt;P&gt;Yes, string concatenation can be used to flatten a vector when data are not strictly diagonal.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc (SUBJECT="Access"  AND OBJECT="status" AND VERB="Get") OR (SUBJECT="Customer Service" AND VERB=Get AND OBJECT="Customer status") OR (SUBJECT="Agreement service" AND OBJECT="attachments" AND VERB="Create") 
| search OUTCOME=FAILURE
| eval verb_object = VERB . " " . OBJECT
| chart count by verb_object&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Apr 2023 07:26:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-pie-chart-for-two-fields/m-p/638572#M221278</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-04-04T07:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart for 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-pie-chart-for-two-fields/m-p/638633#M221300</link>
      <description>&lt;P&gt;Thanks it works&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 10:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-pie-chart-for-two-fields/m-p/638633#M221300</guid>
      <dc:creator>Dharani</dc:creator>
      <dc:date>2023-04-04T10:57:10Z</dc:date>
    </item>
  </channel>
</rss>

