string_count - Administrator Guide - Cortex XDR - Cortex - Security Operations

Cortex XDR Documentation

Product
Cortex XDR
Creation date
2024-03-06
Last date published
2024-10-10
Category
Administrator Guide
Abstract

Learn more about the Cortex Query Language string_count() function that returns the number of times a substring appears in a string.

Syntax
string_count (<string>, <pattern>)
Description

The string_count() function returns the number of times a substring appears in a string.

Example
dataset = xdr_data 
| fields actor_primary_username as apu 
| filter string_count(apu, "e") > 1