--- title: "Length" slug: "length-1" tags: ["Helix Enterprise", "Reference", "Sec Ops and Analytics"] updated: 2026-09-09T16:29:16Z published: 2026-09-09T16:29:16Z canonical: "docs.trellix.com/length-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Length 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] > Note > > This function is only supported in rules. It will not work in search.