Math Functions

PantherFlow math functions

PantherFlow is in open beta starting with Panther version 1.110, and is available to all customers. Please share any bug reports and feature requests with your Panther support team.

math.abs()

math.abs(value: number) -> number

Returns the absolute value of a numeric expression.

Example:

panther_logs.public.aws_alb
| project net_bytes=math.abs(reveivedBytes-sentBytes)

math.ceil()

math.ceil(value: number [, precision: int]) -> number

Returns the value rounded up to the specified precision number of decimal places.

Example:

panther_logs.public.aws_alb
| summarize avg=agg.avg(receivedBytes) by ip_address
| project avg=math.ceil(avg, 2)

math.floor()

math.floor(value: number [, precision: int]) -> number

Returns the value rounded down to the specified precision number of decimal places.

Example:

panther_logs.public.aws_alb
| summarize avg=agg.avg(receivedBytes) by ip_address
| project avg=math.floor(avg, 2)

math.round()

math.round(value: number [, precision: int]) -> float

Returns the value rounded to the specified precision.

Example:

panther_logs.public.aws_alb
| summarize avg=agg.avg(receivedBytes) by ip_address
| project avg=math.round(avg, 2)

Last updated

Was this helpful?