len - Reference Guide - Cortex XDR - Cortex - Security Operations

Cortex XDR XQL Language Reference

Product
Cortex XDR
Creation date
2024-07-16
Last date published
2024-11-25
Category
Reference Guide
Retire_Doc
Retiring
Link_to_new_Doc
/r/Cortex-XDR/Cortex-XDR-Documentation/Cortex-XDR-XQL
Abstract

Learn more about the Cortex Query Language len function that returns the number of characters contained in a string.

Syntax

len (<string>)

Description

The len() function returns the number of characters contained in a string.

Examples

Show domain names that are more than 100 characters in length.

dataset = xdr_data 
| fields dns_query_name 
| filter len(dns_query_name) > 100 
| limit 10