Skip to main content

sqrt Function

The square root function returns the square root value of x.

Syntax

sqrt(<x>) as <field>

Examples

Compute the square root of a literal value

* | sqrt(4) as v

Compute the square root of a parsed numeric field

Use sqrt to convert a variance value back to standard deviation scale:

=application/metrics
| parse "variance=*" as variance
| num(variance)
| sqrt(variance) as std_dev
Status
Legal
Privacy Statement
Terms of Use
CA Privacy Notice

Copyright © 2026 by Sumo Logic, Inc.