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

placing table field in variable

$
0
0
Hi i'm trying to to make a custom dashboard. This is wat i got so far. I got an image as background of the environment with on it images that change with a range map. Things like cpu and netdata and stuff. Know there is a server on with runs an application and in specific cases the load time of this server goes drastically up. So to make the dashboard more complete i want to add a sparkline with the load time on this server. I know javascript code to make this happen but the thing i need is the variables to put in the sparkline. So I want all the variables of a column in a table. The table is drafted with a timespan search. like this search... | timechart span=5s count as values The dashboard is in html so to extact the values i tried to use this: new SearchEventHandler({ manegerid: "searchID1", event: "preview", conditions: [ { attr: "any", value: "*", actions: [ {"type": "set", "token": "loadtime_1", "value": "$result[1].values$"}, {"type": "set", "token": "loadtime_2", "value": "$result[2].values$"}, {"type": "set", "token": "loadtime_3", "value": "$result[3].values$"}, ... {"type": "set", "token": "loadtime_n", "value": "$result[n].values$"} ] } ] }); This didn't work the tokes i used in html, like all other thing i did on this dashboard. Has annyone a solution to this or an alternative method to achief the same goal thanks in advance

Viewing all articles
Browse latest Browse all 47296

Trending Articles



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