SignalFx Developers Guide

log()

Find the natural logarithm(base e) of input.

Syntax

log(inputstream)

Table 1. Parameter definitions
Parameter Type Description

inputstream

stream

Input data stream

Returns a new stream object with the natural logarithm of the input.

Examples

1
2
3
4
5
#Find the natural logarithm of the number of requests
num_requests = data('num.requests')
value = log(num_requests).publish()
#Find the natural logarithm of the median across data centers
value = data('num.requests').median(by='datacenter').map(lambda x:log(x)).publish()

© Copyright 2019 SignalFx.

Third-party license information