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

How to show a token value in an HTML dashboard?

$
0
0
Hi, I have a basic HTML dashboard with 1 panel. My search (search1) returns 1 value. I want to represent this search with a filler gauge + a single value and an image. ![alt text][1] [1]: /storage/temp/137204-sans-titre.png I can show the search value in the header (panel-head), but in the body, it doesn't work. Below is my HTML code :

$bras$

$bras$
And the JS : var singleresult=splunkjs.mvc.Components.get("search1"); singleresult.data("results").on("data", function(results) { var bras = results._data['rows'][0][0]; setToken("bras",bras); });

Viewing all articles
Browse latest Browse all 47296

Trending Articles



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