Document toolboxDocument toolbox

To IPv4 net (net4)

 

Description

Converts a string or integer representing an IPv4 network into net4 data type.

How does it work in the search window?

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

Argument

Data type

Argument

Data type

String to convert / Integer to convert mandatory

string

The data type of the values in the new column is net4.

Example

In the siem.logtrust.web.activity table, we want to add a new column representing the "205.254.211.0/24" net string in net4 format. To do it, click Create column and select the To IPv4 net operation. The arguments needed are:

  • String to convert - Click the pencil icon and enter 205.254.211.0/24.

 

Click Create column and you will see the following result:

How does it work in LINQ?

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

  • net4(net4_string)

  • net4(net4_integer)

Example

You can copy the following LINQ script and try the above example on the siem.logtrust.web.activity table. 

from siem.logtrust.web.activity select net4("205.254.211.0/24") as IPv4net