Archive

HTML query for passing multiple values form checkbox

Explorer

I have converted simple XML dashboard to html dashboard.

var selectedsourcetypes="sourcetype=" + view_checkboxgroup.val().join(" OR sourcetype=");

If i use the above query then its displaying as below,
"sourcetype=choice1 OR sourcetype=choice2 ... OR sourcetype=choicen"

Instead of sourcetype am displaying counter values like %ProcessorTime,%PrivilagedTime etc.I need to display graph for above counters.So i need my query as "Avg(%ProcessorTime),Avg(%PrivilagedTime),.."

Can anyone help to get the above format? Is it possible? Thanks in advance.

Tags (1)
0 Karma

SplunkTrust
SplunkTrust

Something like this?

var selectedaverages = "avg(" + view_checkboxgroup.val().join(") avg(") + ")";
0 Karma

Explorer

Thanks its working great!

0 Karma