Splunk Search

Unicode characters in dashboards/searches

stanwin
Contributor

Hi

Is it fine to use Unicode characters as a quick way to to set checklist marks & various other formatting/make pretty scenarious for example?

e.g.

index=_internal host=splunk* 
|  chart count over source by host   | foreach splunk* [eval <<FIELD>>= if(<<FIELD>>>0,"✔","✘")]

alt text

niketn
Legend

@stanwin, ideally you should use Simple XML JS and CSS extension to show icons (with colors) based on range. But nevertheless good hack 😉

Refer to Custom Icons in Splunk 6 Tables Splunk Blog Or Table Icon related Examples in Splunk Dashboard Examples App from Splunkbase.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

xpac
SplunkTrust
SplunkTrust

I'd argument that, as UTF-8 is de-facto a web standard, using such characters is perfectly fine and much less complex and error prone than doing any of that with JS/CSS extensions. It's a nice hack, have to remember that. 🙂

0 Karma

niketn
Legend

@xpac in SPL " (Unicode 0022) and (Unicode 201C) work differently second one may fail. So while I am really amazed with the way this works and even applies Table Color based on Value from UI, I am not sure whether this will work with all the functionalities like Splunk Dashboard Migration, Copy, Conversion to HTML, PDF Export etc. Splunk Team should probably test this out!

The fact that this approach is unique and surfaced for the first time, I have already up voted the question and bookmarked it 🙂

@stanwin Thanks for sharing. You might have to let us know whether this works for you in all the cases.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

xpac
SplunkTrust
SplunkTrust

Yeah, the different ", are the devil's work and should be avoided (looking at you, MS Word!).
We should however do those UTF-8 things more often, test where Splunk breaks and then get it fixed, because, standards! ;D

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...