How can I concatenate multiple variables in SplunkJS script?
e.g:
var date = Date.now();
var alertid = 12345;
var filename = date.concat("_").concat(alertid).concat(".txt");
do I need to import any library?
You can use + for concatenating two strings.
newlabel = newlabel +"<font color=\"red\" face=\"verdana\">*</font>";
You can use + for concatenating two strings.
newlabel = newlabel +"<font color=\"red\" face=\"verdana\">*</font>";