Skip to main content

jsonArraySize Search Operator

Use the jsonArraySize operator to determine the size of a JSON array field.

Syntax​

jsonArraySize(field)

Example​

_sourceCategory=stream .ett 
| fields tiers
| jsonArraySize("[1, 2, 3]") as js
| jsonArraySize(tiers) as tierCount

Rules​

Returns -1 if null.

Status
Legal
Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.