Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel2
typeflat

Description

Converts an integer or a string representing an IPv4 address into an IPv4 address in ip data type.

How does it work in the search window?

Select Create column field in the search window toolbar, then select the To IPv4 operation. You need to specify one argument:

Argument

Data type

String to convert / Integer to convert mandatory

string, integer

The data type of the values in the new column field is ip.

Example

In the demosiem.logtrust.ecommerceweb.dataactivity table, we want to transform the numbers in the bytesTransferred column  responseLength field into IP addresses. To do it, click Create columnfield and select the To IPv4 operation. The arguments needed are:

  • Integer to convert bytesTransferred columnresponseLength field

...

Click Create columnfield and you will see the following result:

...

Use the operator select... as...  and add the operation syntax to create the new columnfield. These are the valid formats of the To IPv4 operation:

  • ip4(ipv4_string)

  • ip4(ipv4_integer)

Example

You can copy the following LINQ script and try the above example on the demosiem.logtrust.ecommerceweb.dataactivity table. 

Code Block
from demosiem.logtrust.ecommerceweb.dataactivity
select ip4(bytesTransferredresponselength) as IPv4