log10()
Returns the base-10 logarithm of the specified number. If a negative number is passed to the parameter, this returns NaN
(Not a Number). It returns null
when it receives an argument value, not a number.
Syntax
log10(NUM_EXPR)
Required Parameter
NUM_EXPR
- Expression that returns int, short, long, float, or double.
Usage
json "{}" | eval result=log10(10) => 1
json "{}" | eval result=log10(100) => 2
json "{}" | eval result=log10(-10) => NaN