int_to_ip - Reference Guide - Cortex XDR - Cortex - Security Operations

Cortex XDR XQL Language Reference

Product
Cortex XDR
Creation date
2024-07-16
Last date published
2024-10-06
Category
Reference Guide
Abstract

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

Syntax

int_to_ip(<IPv4_integer>)

Description

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

Examples

Returns the IPv4 address "4.130.58.140" from the integer representation of the IPv4 address provided as 75643532.

int_to_ip(75643532)

Returns the IPv4 address "251.125.197.116" from the integer representation of the IPv4 address provided as -75643532.

int_to_ip(-75643532)