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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...