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

Macro Validation Expression Error?

$
0
0
I made a macro, we'll call it "test" defined as eval new_rate=$val$*$rate$ with the validation expression just checking rate to make sure it's a number isnum($rate$) When I call the macro.. I end up with something like `test(revenue, .79)` When I do this, Splunk says my rate failed validation because .79 is considered a string. When I pass 0.79, it passes as expected. Is this intentional, or a bug? Additionally, is there a function that would pass .79 as a number?

Viewing all articles
Browse latest Browse all 47296

Trending Articles



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