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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...