Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to use environment default tokens in HTML Dashboards?

$
0
0
Hi Splunkers, I'm trying to use $env:user_realname$ in a HTML dashboard, I've searched a lot about It and realize that I could only get this information with a SplunkJs function but I only get this until now: var tokens = mvc.Components.getInstance("default"); var current=Splunk.util.getConfigValue("USERNAME"); tokens.set("currentuser", current); The code above only brings me my username and I want full name (or realname, as Splunk use to reference). Thanks everyone!

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>