The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages launching in early November 2026. We hope you enjoy the updated experience.

Length

Prev Next

The length function will calculate the length of a field. Use a comparison operator to filter.

The parameter to the length function is a field name. For example:

 length(uri) > 20

Result: would return only results that included a uri field with a string length greater than 20.

Any field used in the length function will be treated as a string field. The right-hand side of a comparison must be a number.

Note

This function is only supported in rules. It will not work in search.