Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Extra fields

Fields marked as Extra in the table below are not shown by default in data tables and need to be explicitly requested in the query. You can find them marked as Extra when you perform a query so they can be easily identified. Learn more about this in Selecting unrevealed columns.

Field

Type

Source field name

Extra fields

eventdate

timestamp

 

source

str

 

fwname

firewall_name

str

 

firewall_cluster

str

 

fwcluster

severity

str

 

level

source_ip

str

 

srcIp

source_ipv4

ip4

source_port

str

 

srcPort

destination_ip

int4

str

 

dstIp

destination_ipv4

ip4

 

dstPort

int4

destination_port

str

 

user

str

 

virus_name

str

 

virus_subtype

str

 

hostchain

str

 

tag

str

 

rawMessage

str

rawSource

Field transformations

Even though all source tables have several features in common, they have some particularities that make it necessary to undergo a set of transformations to harmonize them for the union table. The most common transformations comprise changes in the data type or the application of rules when several columns in the source table feed a single column in the union table. You can find below the detailed list of transformations in each source table.

...

Anchor
tag1
tag1
firewall.fortinet.utm.virus

Field in union table

Field in source table

Field transformation

Type

Extra fields

eventdate

eventdate

 

timestamp

source

-

Code Block
"fortinet"

str

fwname

devname

Code Block
devname ?: 'default'

str

fwcluster

vd

Code Block
vd ?: 'default'

str

level

levelsrcip

firewall_name

firewall_name

 

str

firewall_cluster

firewall_cluster

 

str

severity

severity

 

str

source_ip

srcip_str

 

str

srcIp

source_ipv4

source_ipv4

 

ip4

srcPort

srcport

 

int4

dstIp

dstip

source_port

srcport

Code Block
str(srcport)

str

destination_ip

dstip

Code Block
str(dstip)

str

destination_ipv4

destination_ipv4

 

ip4

dstPort

destination_port

dstport

 

int4

Code Block
str(dstport)

str

user

user

Code Block
ifthenelse(eq(user, "N/A"), null(""), user)

str

virus_name

virus_name

 

str

virus_subtype

virus_subtype

 

str

rawSource

rawMessage

 

str

hostchain

rawMessage

hostchain

rawMessage

 

str

tag

hostchain

tag

hostchain

 

str

rawMessage

tag

rawMessage

tag

 

str

Anchor
tag2
tag2
firewall.sonicwall.genv58

Field in union table

Field in source table

Field transformation

Type

Extra fields

eventdate

eventdate

 

timestamp

source

-

Code Block
"sonicwall.genv58"

str

fwname

sn

Code Block
sn ?: 'default'

str

fwcluster

fw

Code Block
fw ?: 'default'

str

level

pri

Code Block
(pri -> 0) ? 'emergency' : (pri -> 1) ? 'alert' : (pri -> 2) ? 'critical' : (pri -> 3) ? 'error' : (pri -> 4) ? 'warning' : (pri -> 5) ? 'notice' : (pri -> 6) ? 'info' : (pri -> 7) ? 'debug' : null('')

str

srcIp

srcIp

 

ip4

srcPort

srcPort

Code Block
int4(srcPort)

int4

dstIp

dstIp

 

ip4

dstPort

dstPort

Code Block
int4(dstPort)

int4

user

srcIp

usr

firewall_name

firewall_name

 

str

firewall_cluster

firewall_cluster

 

str

severity

severity

 

str

source_ip

srcIp

Code Block
str(srcIp)

str

source_ipv4

source_ipv4

 

ip4

source_port

srcPort

 

str

destination_ip

dstIp

Code Block
str(dstIp)

str

destination_ipv4

destination_ipv4

 

ip4

destination_port

dstPort

 

str

user

usr

srcIp

Code Block
ifthenelse(isnull(usr), str(srcIp), usr)

str

virus_name

msg

virus_name

Code Block
peek(msg, re("Gateway Anti-Virus Alert:(.*) blocked"), 1)

str

subtype

msg

Code Blockpeek(msg, re("\\(([^)]*)\\)[^(]*$"), 1)

 

str

virus_subtype

virus_subtype

 

str

rawSource

rawMessage

 

str

hostchain

rawMessage

hostchain

rawMessage

 

str

tag

hostchain

tag

hostchain

 

str

rawMessage

tag

rawMessage

tag

 

str