Boolean
and
Performs a Boolean AND operation on the left and right arguments and returns the result as a Boolean.
- Function Input
- Left: boolean
- Right: boolean
- Function Output
- boolean
DSL example
and(eq("kind", "event"), eq("sourcetype", "asa"));
not
Performs a Boolean NOT operation and returns the result as a Boolean.
- Function Input
- predicate: boolean
- Function Output
- boolean
DSL example
not(eq("index", null));
or
Performs a Boolean OR operation on the left and right arguments and returns the result as a Boolean.
- Function Input
- Left: boolean
- Right: boolean
- Function Output
- boolean
DSL example
or(eq("kind", "event"), eq("sourcetype", "asa"));
xor
Performs a Boolean XOR operation on the left and right arguments and returns the result as a Boolean.
- Function Input
- Left: boolean
- Right: boolean
- Function Output
- boolean
DSL example
xor(eq("kind", "event"), eq("sourcetype", "asa"));
Arithmetic | Comparison |
This documentation applies to the following versions of Splunk® Data Stream Processor: 1.0.0
Feedback submitted, thanks!