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

niketnilay
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
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!