ln()

Table of Contents

Definition

ln() function returns the natural logarithm for the given numerical value.

Examples

The following example calculates the natural logarithm for each row column’s value and then turns it into a graph with stats.

| makeresults count=100
| eval row=1
| accum row
| eval naturalLogarithm=ln(row)
| stats count by row naturalLogarithm
Screenshot of the previous example’s result. It shows two paragraphs: the first one shows table results and the second one a line graph based on natural logarithm values.

Further Reading