log()

Returns a natural logarithm of the specified number. If a negative number is passed to the parameter, it returns NaN (Not a Number). It returns null when it receives an argument value that is not a number.

Syntax

log(NUM_EXPR)
Required Parameter
NUM_EXPR
Expression that returns int, short, long, float, or double.

Usage

json "{}" | eval log=log(10) => 2.302585092994046