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

Passing comparison operators in a variable

$
0
0
Is there a way to dynamically pass a comparison operator as a variable without a macro? I am looking to achieve something similar to what is shown below. | eval number=8 | eval operator=">=" | eval comparison=7 | eval validate=if(number.operator.comparison,"yep","nope")

Viewing all articles
Browse latest Browse all 47296

Trending Articles