Document toolboxDocument toolbox

To IPv6 net (net6)

Description

Converts a string representing an IPv6 network address into net6 data type.

How does it work in the search window?

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

Argument

Data type

Argument

Data type

String to convert mandatory

string

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

Example

In the siem.logtrust.web.activity table, we want to add a new column representing the "2001:db8:abcd:0012::0/64" net string in net6 format. To do it, click Create column and select the To IPv6 net operation. The arguments needed are:

  • String to convert - Click the pencil icon and enter 2001:db8:abcd:0012::0/64

 

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 IPv6 net (net6) operation:

  • net6(ipv4_string) 

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 net6("2001:db8:abcd:0012::0/64") as IPv6net