ip_to_int - Administrator Guide - Cortex XSIAM - Cortex - Security Operations

Cortex XSIAM Documentation

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

Learn more about the Cortex Query Language ip_to_int() function that safely converts a string representation of an IPv4 address to an integer equivalent.

Syntax
ip_to_int(<IPv4_address>)

Note

This function was previously called safe_ip_to_int() and was renamed to ip_to_int().

Description

The ip_to_int() function tries to safely convert a string representation of an IPv4 address into its integer equivalent.

Example

Returns the integer 808530483 from the string representation of the IPv4 address provided as "48.49.50.51".

ip_to_int("48.49.50.51")