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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...