<?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: Multiple grouping ofdata over chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multiple-grouping-ofdata-over-chart/m-p/300374#M90431</link>
    <description>&lt;P&gt;index="index" sourcetype="defects" (STATE="Closed" OR STATE="Retest Complete") DETECTED_IN_RELEASE="&lt;EM&gt;" SEVERITY="&lt;/EM&gt;" ENVIRONMENT=D000002 OR ENVIRONMENT=D000007 OR ENVIRONMENT=Prod OR ENVIRONMENT=Production|sort DETECTED_IN_RELEASE |stats count(eval(ENVIRONMENT= "D000002" OR ENVIRONMENT="D000007")) as PPROD_IND count(eval(ENVIRONMENT="Prod" OR ENVIRONMENT="Production")) as PROD_IND  by DETECTED_IN_RELEASE SEVERITY |  stats sum(PPROD_IND) as TOT_PPROD sum(PROD_IND) as TOT_PROD by DETECTED_IN_RELEASE SEVERITY&lt;BR /&gt;
| eval DRE%=round(TOT_PPROD/(TOT_PPROD+TOT_PROD)*100,1)&lt;BR /&gt;
|rename DETECTED_IN_RELEASE as Release&lt;BR /&gt;
| chart sum(TOT_PPROD) as PPROD sum(TOT_PROD) as PROD over Release by SEVERITY &lt;/P&gt;

&lt;P&gt;This is the query i am using but I am not able to dispaly DIE% as overlay field and also I need further classiifcation of Release i.e consider there are releases ab,cd,de,ef chart should display the fields in this format&lt;/P&gt;

&lt;P&gt;PProd,Prod PProd,Prod  PProd,Prod  PProd,Prod PProd,Prod  PProd,Prod PProd,Prod PProd,Prod  PProd,Prod&lt;BR /&gt;
Sev 1        Sev2                    Sev3          Sev 1               Sev2      Sev3                  Sev 1       Sev2             Sev3&lt;BR /&gt;
             ab                                 cd                                                                ef&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:36:24 GMT</pubDate>
    <dc:creator>ujwalagangakoth</dc:creator>
    <dc:date>2020-09-29T17:36:24Z</dc:date>
    <item>
      <title>Multiple grouping ofdata over chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-grouping-ofdata-over-chart/m-p/300372#M90429</link>
      <description>&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/226688-chart.png" alt="alt text" /&gt;I have to group defects based on severity and again based on release.the chart should contain multiple grouping first by severity then by release.I have two envs prod and pre prod .I have to group preprod and prod based on severity i.e for sev1 we need preprod and prod grouping same goes for sev2 and sev3 ,then these sev1,sev2,sev3 will be again grouped by release. so in chart , i need release wise grouping and in each release ,each severit contains prod and pre prod &lt;BR /&gt;
index="index" sourcetype="defects" (STATE="Closed" OR STATE="Retest Complete") DETECTED_IN_RELEASE="&lt;EM&gt;" SEVERITY="&lt;/EM&gt;" ENVIRONMENT=D000002 OR ENVIRONMENT=D000007 OR ENVIRONMENT=Prod OR ENVIRONMENT=Production|sort DETECTED_IN_RELEASE |stats count(eval(ENVIRONMENT= "D000002" OR ENVIRONMENT="D000007")) as PPROD_IND count(eval(ENVIRONMENT="Prod" OR ENVIRONMENT="Production")) as PROD_IND  by DETECTED_IN_RELEASE SEVERITY |  stats sum(PPROD_IND) as TOT_PPROD sum(PROD_IND) as TOT_PROD by DETECTED_IN_RELEASE SEVERITY&lt;BR /&gt;
| eval DRE%=round(TOT_PPROD/(TOT_PPROD+TOT_PROD)*100,1)&lt;BR /&gt;
|rename DETECTED_IN_RELEASE as Release&lt;BR /&gt;
| chart sum(TOT_PPROD) as PPROD sum(TOT_PROD) as PROD over Release by SEVERITY &lt;/P&gt;

&lt;P&gt;This is the query i am using but I am not able to dispaly DIE% as overlay field and also I need further classiifcation of Release i.e consider there are releases ab,cd,de,ef chart should display the fields in this format in three level grouping&lt;/P&gt;

&lt;P&gt;PProd,Prod PProd,Prod  PProd,Prod  PProd,Prod PProd,Prod  PProd,Prod PProd,Prod PProd,Prod  PProd,Prod        (env grouping)&lt;BR /&gt;
Sev 1        Sev2                     Sev3          Sev 1               Sev2                   Sev3       Sev 1             Sev2              Sev3                 (severity grouping)&lt;BR /&gt;
             ab                                         cd                                                     ef                                               (release grouping)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-grouping-ofdata-over-chart/m-p/300372#M90429</guid>
      <dc:creator>ujwalagangakoth</dc:creator>
      <dc:date>2020-09-29T17:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple grouping ofdata over chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-grouping-ofdata-over-chart/m-p/300373#M90430</link>
      <description>&lt;P&gt;hey if you give us sample input event and output you want to achieve then it would be good.&lt;BR /&gt;
Meanwhile try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index | stats count  as no_of_defects by  prod_environment severity release
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps you!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 12:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-grouping-ofdata-over-chart/m-p/300373#M90430</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-10T12:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple grouping ofdata over chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-grouping-ofdata-over-chart/m-p/300374#M90431</link>
      <description>&lt;P&gt;index="index" sourcetype="defects" (STATE="Closed" OR STATE="Retest Complete") DETECTED_IN_RELEASE="&lt;EM&gt;" SEVERITY="&lt;/EM&gt;" ENVIRONMENT=D000002 OR ENVIRONMENT=D000007 OR ENVIRONMENT=Prod OR ENVIRONMENT=Production|sort DETECTED_IN_RELEASE |stats count(eval(ENVIRONMENT= "D000002" OR ENVIRONMENT="D000007")) as PPROD_IND count(eval(ENVIRONMENT="Prod" OR ENVIRONMENT="Production")) as PROD_IND  by DETECTED_IN_RELEASE SEVERITY |  stats sum(PPROD_IND) as TOT_PPROD sum(PROD_IND) as TOT_PROD by DETECTED_IN_RELEASE SEVERITY&lt;BR /&gt;
| eval DRE%=round(TOT_PPROD/(TOT_PPROD+TOT_PROD)*100,1)&lt;BR /&gt;
|rename DETECTED_IN_RELEASE as Release&lt;BR /&gt;
| chart sum(TOT_PPROD) as PPROD sum(TOT_PROD) as PROD over Release by SEVERITY &lt;/P&gt;

&lt;P&gt;This is the query i am using but I am not able to dispaly DIE% as overlay field and also I need further classiifcation of Release i.e consider there are releases ab,cd,de,ef chart should display the fields in this format&lt;/P&gt;

&lt;P&gt;PProd,Prod PProd,Prod  PProd,Prod  PProd,Prod PProd,Prod  PProd,Prod PProd,Prod PProd,Prod  PProd,Prod&lt;BR /&gt;
Sev 1        Sev2                    Sev3          Sev 1               Sev2      Sev3                  Sev 1       Sev2             Sev3&lt;BR /&gt;
             ab                                 cd                                                                ef&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-grouping-ofdata-over-chart/m-p/300374#M90431</guid>
      <dc:creator>ujwalagangakoth</dc:creator>
      <dc:date>2020-09-29T17:36:24Z</dc:date>
    </item>
  </channel>
</rss>

