Network Flow Reports VQL Schema
VQL for Network Flow Reports comprises one namespace,network_flow_logs, which represents the available filters on Network Flow Reports in the Vantage console. To reference a filter, use the following syntax: namespace.field (e.g., network_flow_logs.account_id). The following fields are available within the network_flow_logs namespace.
Keywords
VQL includes a set of keywords to create complex filter conditions. These keywords function similar to their SQL equivalents.
With these operators and keywords, you can construct complex filter conditions in VQL.
VQL Examples
The following examples cover common use cases for VQL.Network Flows by Account ID
Network flows from a set of account IDs.Network Flows by Availability Zone ID
Filter for a substring based on Availability Zone.Network Flows by Destination Address
All network flows that do not match a particular destination address.Network Flows by Destination Hostname
Network flows from a set of destination hostnames.Network Flows by Interface ID
Network flows for a particular interface ID.Network Flows by Instance ID
Network flows for a particular instance ID.Network Flows by Peer Resource UUID
Network flows for peer resource UUIDs matching a substring.Network Flows by Peer Account ID
Network flows for anything that’s not a particular peer account ID.Network Flows by Peer VPC ID
Network flows for two different peer VPC IDs.Network Flows by Peer Regions
Network flows for anything outside a set of peer regions.Network Flows by Peer AZ ID
Network flows for a specific peer AZ.Network Flows by Peer Subnet ID
Network flows for any peer subnet IDs that do not contain a substring.Network Flows by Peer Interface ID
Network flows based on a peer interface ID substring.Network Flows by Peer Instance ID
Network flows excluding a particular peer instance ID.Network Flows by Region
Network flows in multiple regions.Network Flows by Resource UUID
Network flows for resources not matching a specific UUID substring.Network Flows by Source Address
Network flows from a set of source addresses.Network Flows by Source Hostname
Network flows excluding specific source hostnames.Network Flows by Subnet ID
Network flows for subnets with a specific prefix.Network Flows by Traffic Category
Only cross-region traffic.Network Flows by Traffic Path
Network flows for Inter-Region VPC Peering. Traffic paths have a specific key, as described below.Network Flows by VPC ID
Everything except for a specific VPC.Multiple Filters
Complex filter that shows combining two different statements usingOR with multiple criteria.