---
title: "firewall.all.vpn.traffic"
canonical: "https://docs.devo.com/space/latest/352813057/firewall.all.vpn.traffic"
format: markdown
---
> Macro (toc)

## Introduction

This table collects a variety of firewall event logs related to VPN traffic.

## Source tables

The information displayed is extracted from the following tables:

- `firewall.fortinet.event.vpn`
- `firewall.sonicwall.genv58`

## Table structure

This is the set of columns displayed by this union table, which is the result of the collection of columns present in all source tables:

> ⚠️ **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](https://docs.devo.com/space/latest/95126107/auth.all).

| **Field** | **Type** | **Source field name** | ***Extra***** fields** |
| --- | --- | --- | --- |
| *eventdate* | `timestamp` |  |  |
| *source* | `str` |  |  |
| *firewall_name* | `str` | *fwname* |  |
| *firewall_cluster* | `str` | *fwcluster* |  |
| *source_ip* | `str` | * * |  |
| *source_ipv4* | `ip4` | *srcIp* |  |
| *source_port* | `str` | * * |  |
| *destination_ip* | `str` | * * |  |
| *destination_ipv4* | `ip4` | *dstIp* |  |
| *destination_port* | `str` | * * |  |
| *bytes_sent* | `int8` | *sent* |  |
| *bytes_received* | `int8` | *recv* |  |
| *user* | `str` | * * |  |
| *tunnel_type* | `str` | *tunnelType* |  |
| *tunnel_name* | `str` | *vpnTunnel* |  |
| *duration* | `int8` | * * |  |
| *rawMessage* | `str` | *rawSource* | **✓** |
| *hostchain* | `str` |  | **✓** |
| *tag* | `str` |  | **✓** |

## 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.

- [firewall.fortinet.event.vpn](#tag1)
- [firewall.sonicwall.genv58](#tag2)

### > Macro (anchor)

firewall.fortinet.event.vpn

| **Field in union table** | **Field in source table** | **Field transformation** | **Type** | ***Extra***** fields** |
| --- | --- | --- | --- | --- |
| *eventdate* | *eventdate* |  | `timestamp` |  |
| *source* | *-* | ```
"fortinet"
``` | `str` |  |
| *firewall_name* | *firewall_name* |  | `str` |  |
| *firewall_cluster* | *firewall_cluster* |  | `str` |  |
| *source_ip* | *localIP* | ```
str(localIP)
``` | `str` |  |
| *source_ipv4* | *source_ipv4* |  | `ip4` |  |
| *source_port* | *localPort* | ```
str(localPort)
``` | `str` |  |
| *destination_ip* | *remoteIP* | ```
str(remoteIP)
``` | `str` |  |
| *destination_ipv4* | *destination_ipv4* |  | `ip4` |  |
| *destination_port* | *remotePort* | ```
str(remotePort)
``` | `str` |  |
| *bytes_sent* | *bytes_sent* |  | `int8` |  |
| *bytes_received* | *bytes_received* |  | `int8` |  |
| *user* | *user*<br>*localIP* | ```
nvl(ifthenelse(eq(user, "N/A"), null(""), user), str(localIP))
``` | `str` |  |
| *tunnel_type* | *tunnel_type* |  | `str` |  |
| *tunnel_name* | *tunnel_name* |  | `str` |  |
| *duration* | *duration* |  | `int8` |  |
| *rawSource* | *rawMessage* |  | `str` | **✓** |
| *rawMessage* | *rawMessage* |  | `str` | **✓** |
| *hostchain* | *hostchain* |  | `str` | **✓** |
| *tag* | *tag* |  | `str` | **✓** |

### > Macro (anchor)

firewall.sonicwall.genv58

| **Field in union table** | **Field in source table** | **Field transformation** | **Type** | ***Extra***** fields** |
| --- | --- | --- | --- | --- |
| *eventdate* | *eventdate* |  | `timestamp` |  |
| *source* | *-* | ```
"sonicwall.genv58"
``` | `str` |  |
| *firewall_name* | *firewall_name* |  | `str` |  |
| *firewall_cluster* | *firewall_cluster* |  | `str` |  |
| *source_ip* | *srcIp* | ```
str(srcIp)
``` | `str` |  |
| *source_ipv4* | *source_ipv4* |  | `ip4` |  |
| *source_port* | *srcPort* |  | `str` |  |
| *destination_ip* | *dstIp* | ```
str(dstIp)
``` | `str` |  |
| *destination_ipv4* | *destination_ipv4* |  | `ip4` |  |
| *destination_port* | *dstPort* |  | `str` |  |
| *bytes_sent* | *bytes_sent* |  | `int8` |  |
| *bytes_received* | *bytes_received* |  | `int8` |  |
| *user* | *usr*<br>*srcIp* | ```
ifthenelse(isnull(usr), str(srcIp), usr)
``` | `str` |  |
| *tunnel_type* | *tunnel_type* |  | `str` |  |
| *tunnel_name* | *tunnel_name* |  | `str` |  |
| *duration* | *-* | ```
null
``` | `int8` |  |
| *rawSource* | *rawMessage* |  | `str` | **✓** |
| *rawMessage* | *rawMessage* |  | `str` | **✓** |
| *hostchain* | *hostchain* |  | `str` | **✓** |
| *tag* | *tag* |  | `str` | **✓** |