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

Cortex XDR XQL Language Reference

Product
Cortex XDR
Creation date
2024-02-26
Last date published
2024-05-21
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)