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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...