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

Simple math and string concatenation

$
0
0
Hi I have this dashboard:
Last dayLast 7 daysLast 30 daysLast 12 months30-30d-d
CODE$period$now CODE The token $period$ is set, for instance, at -30d (and I use this token i the query so i need it like this). Now what I also need is the $period$ to double the period, for example: -60d This implies that i have to extract the 30 from the string "-30d", double it and put it back between the "-" and the "d". Another solution i thought is to set 2 values for every choice of the imput, like: Last 30 days But this seems to be not possible. Please help me.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



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