Dashboards & Visualizations

Convert to HTML not working with multiple drilldowns and tokens, 500 Internal Server Error and python traceback

j_mm
New Member

I've created a dashboard with a couple of bar graphs and two tables. Both bar graphs have drilldowns that set/unset two tokens to hide/unhide the related table. Also those tokens are used as part of the respective table search query.

Using the UI option to convert the dashboard to HTML does nothing when clicking the "Convert Dashboard" button.
Checking the logs I found that web_service.log complains about something in line 63 of drilldown.py (in the python3 path):

TypeError: a bytes-like object is required, not 'str'

That line is a call to logger.warn, passing some string parameters to %s and %d placeholders. If you remove the placeholders and the parameters, and feed logger.warn a literal string, "Convert Dashboard" now works.

I feel this is an issue with the migration to Python3 (and the change from byte strings to unicode in strings, from Python2), although I'm not sure if it lays entirely on the side of Splunk or if there's something on my server configuration that might have something to do with it.

I'd file a bug report but I don't have an active support contract.

0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

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 ...