Dashboards & Visualizations

Trellis Layout with PieChart

davidcraven02
Communicator

I have a pie chart which displays a breakdown of all Operating Systems but after trying to use the Trellis drill down it does not work. I don't know what I need to add in order to make it display correctly.

alt text

Please see my dashboard source code.

   <form>
       <label>OTL Client Desktops Test</label>
       <fieldset autoRun="true" submitButton="true">
       <row>
         <panel>
           <title>Operating System for client</title>
           <chart>
             <search>
               <query>`GEN_ProductionWorkstations` 
                   | rename User_Name0 as LastKnownUser, Caption0 as operatingSystem, Version0 as Version, Model0 as Model 
                   | search $companyCode$ 
                   | dedup machine 
                   | stats count by operatingSystem</query>
               <earliest>$Test_Time_Range.earliest$</earliest>
               <latest>$Test_Time_Range.latest$</latest>
             </search>
             <option name="charting.axisTitleX.visibility">collapsed</option>
             <option name="charting.axisTitleY.visibility">collapsed</option>
             <option name="charting.axisTitleY2.visibility">collapsed</option>
             <option name="charting.chart">pie</option>
             <option name="charting.chart.sliceCollapsingThreshold">0.01</option>
             <option name="charting.drilldown">all</option>
             <option name="charting.legend.placement">none</option>
             <option name="height">394</option>
             <option name="refresh.display">progressbar</option>
             <option name="trellis.enabled">1</option>
             <option name="trellis.size">medium</option>
             <option name="trellis.splitBy">operatingSystem</option>
           </chart>
         </panel>
       </row>
     </form>
1 Solution

493669
Super Champion

Try below:

<form>
        <label>OTL Client Desktops Test</label>
        <fieldset autoRun="true" submitButton="true">
        <row>
          <panel>
            <title>Operating System for client</title>
            <chart>
              <search>
                <query>`GEN_ProductionWorkstations` 
                    | rename User_Name0 as LastKnownUser, Caption0 as operatingSystem, Version0 as Version, Model0 as Model 
                    | search $companyCode$ 
                    | dedup machine 
                    | stats count by operatingSystem Version</query>
                <earliest>$Test_Time_Range.earliest$</earliest>
                <latest>$Test_Time_Range.latest$</latest>
              </search>
              <option name="charting.axisTitleX.visibility">collapsed</option>
              <option name="charting.axisTitleY.visibility">collapsed</option>
              <option name="charting.axisTitleY2.visibility">collapsed</option>
              <option name="charting.chart">pie</option>
              <option name="charting.chart.sliceCollapsingThreshold">0.01</option>
              <option name="charting.drilldown">all</option>
              <option name="charting.legend.placement">none</option>
              <option name="height">394</option>
              <option name="refresh.display">progressbar</option>
              <option name="trellis.enabled">1</option>
              <option name="trellis.size">medium</option>
              <option name="trellis.splitBy">operatingSystem</option>
            </chart>
          </panel>
        </row>
      </form>

It seems you need to add one more field in stats by clause
Hope this helps...

View solution in original post

davidcraven02
Communicator

Absolute legend! Thank you!!!!

0 Karma

493669
Super Champion

Try below:

<form>
        <label>OTL Client Desktops Test</label>
        <fieldset autoRun="true" submitButton="true">
        <row>
          <panel>
            <title>Operating System for client</title>
            <chart>
              <search>
                <query>`GEN_ProductionWorkstations` 
                    | rename User_Name0 as LastKnownUser, Caption0 as operatingSystem, Version0 as Version, Model0 as Model 
                    | search $companyCode$ 
                    | dedup machine 
                    | stats count by operatingSystem Version</query>
                <earliest>$Test_Time_Range.earliest$</earliest>
                <latest>$Test_Time_Range.latest$</latest>
              </search>
              <option name="charting.axisTitleX.visibility">collapsed</option>
              <option name="charting.axisTitleY.visibility">collapsed</option>
              <option name="charting.axisTitleY2.visibility">collapsed</option>
              <option name="charting.chart">pie</option>
              <option name="charting.chart.sliceCollapsingThreshold">0.01</option>
              <option name="charting.drilldown">all</option>
              <option name="charting.legend.placement">none</option>
              <option name="height">394</option>
              <option name="refresh.display">progressbar</option>
              <option name="trellis.enabled">1</option>
              <option name="trellis.size">medium</option>
              <option name="trellis.splitBy">operatingSystem</option>
            </chart>
          </panel>
        </row>
      </form>

It seems you need to add one more field in stats by clause
Hope this helps...

493669
Super Champion

If you try to run below query in search in your app:

  `GEN_ProductionWorkstations` 
                        | rename User_Name0 as LastKnownUser, Caption0 as operatingSystem, Version0 as Version, Model0 as Model 

What is the output you are receiving

0 Karma

davidcraven02
Communicator

What was the reason for this? It runs and returns data

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...