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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Introducing the 2026 - 2027 SplunkTrust cohort!

The goal of the SplunkTrust™ membership has historically been to acknowledge and recognize those who go above ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...