is_ipv4 - Learn more about the Cortex Query Language is_ipv4() function. - Administrator Guide - Cortex XDR - Cortex - Security Operations

Cortex XDR 3.x Documentation

Product
Cortex XDR
License
Prevent
Pro
Creation date
2024-03-06
Last date published
2025-12-24
Category
Administrator Guide
Abstract

Learn more about the Cortex Query Language is_ipv4() function.

Syntax
is_ipv4(<IPv4_address>)
Description

The is_ipv4() function accepts a string, and returns true if the string is a valid IPv4 address. The IPv4 address can be either an explicit string using quotes (""), such as "192.168.0.1", or a string field.

Note

The <IPv4_address> must contain an IPv4 address in an IPv4 field. For production purposes, this IPv4 address will normally be carried in a field that you retrieve from a dataset. For manual usage, assign the IPv4 address to a field, and then use that field with this function.

Example