Dashboards & Visualizations

Converted SimpleXML dashboard to HTML, trellis not working for single value

vegardw
Engager

I have a dashboard that I have converted to HTML. The dashboard contains a single value element with trellis enabled:

<single>
    <search>
        <query>| ess index="sandbox_report*" scan=true $only_high_score$| stats count by sandbox</query>
        <earliest>$timepicker.earliest$</earliest>
        <latest>$timepicker.latest$</latest>
    </search>
    <option name="drilldown">none</option>
    <option name="height">185</option>
    <option name="trellis.enabled">1</option>
    <option name="trellis.size">medium</option>
</single>

This works as expected.

When I convert the dashboard to HTML however, the trellis doesn't work anymore. The element is displayed without trellis, as a standard single value element.

The converted code:

var element1 = new SingleElement({
    "id": "element1",
    "trellis.enabled": "1",
    "trellis.size": "medium",
    "drilldown": "none",
    "height": "185",
    "managerid": "search1",
    "el": $('#element1')
}, {
    tokens: true,
    tokenNamespace: "submitted"
}).render();

Does anyone have any pointers on why this does not work as expected, and how to fix it?

0 Karma

Lazarix
Communicator

SingleValues only work inside of an entire view XML module and include all the HTML that is generated.

You may need to use Sideview Utils to get what you want out of this particular situation, as the HTML probably won't let you do what you need.

0 Karma

niketn
Legend

@vegardw I dont think Trellis is supported in HTML dashboard. What is the requirement for using HTML dashboard?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...