View flow logs for multicast
This page describes support for multicast traffic in VPC Flow Logs.
VPC Flow Logs samples packets in your Virtual Private Cloud (VPC) network to generate flow logs. Flow logs are aggregated by IP connection (5-tuple).
You can view flow logs in Cloud Logging, and you can export logs to any destination that Cloud Logging export supports. These logs can be used for network monitoring, forensics, security analysis, and expense optimization. For example, multicast producers can use log-based metrics to track packet loss for multicast consumers. For more information, see the Log-based metrics overview in the Cloud Logging documentation.
For more information, see the VPC Flow Logs overview.
VPC Flow Logs records for multicast
The following table summarizes the unique information included in VPC Flow Logs records for multicast traffic depending on whether the reporter of the flow is a multicast producer or a multicast consumer.
| Flow reporter | Description of logs |
|---|---|
| Multicast producer |
For multicast producers, VPC Flow Logs generates two sets of flow logs:
|
| Multicast consumer |
VPC Flow Logs records include the following information:
For details, see Record format for multicast consumers. |
Record format for multicast producers
This section describes the unique fields and field format differences in VPC Flow Logs records for multicast traffic when the reporter of the flow is a multicast producer.
For a full list of fields in VPC Flow Logs records, see About VPC Flow Logs records.
For a given multicast producer flow, VPC Flow Logs generates up to three flow log records for the same traffic:
- A regular log record. This record corresponds to aggregate traffic to a group and is always generated.
- A per-consumer latency log record. This record is typically always generated. However, in rare cases when 100% packet loss occurs during the aggregation interval, this record isn't generated.
- A per-consumer packet loss record. This record is generated only if packet loss occurs.
For details about the fields in each log record, see the following table.
| Field | Field format | Field type: Base or optional metadata |
|---|---|---|
| log_type |
string
If the log is a per-consumer log, this field is populated with a value of PER_MULTICAST_CONSUMER_PRODUCER_LOG. Otherwise, this field
isn't populated.
|
Base |
| disposition |
string
Applies to per-consumer logs. If the log represents packet loss, this field is populated with a value of DROPPED. Otherwise, this field isn't populated.
|
Base |
| drop_reason |
string
Applies to per-consumer logs. If the value of the disposition
field is DROPPED,
this field is populated with a value of LOST_IN_TRANSIT.
Otherwise, this field isn't populated.
|
Base |
| one_way_network_latencies |
Latencies
Applies to per-consumer logs. If the disposition isn't populated,
meaning there is no packet loss, this field is populated with one-way network latency in milliseconds with sub-millisecond precision as measured during the aggregation interval. If not populated, the measurement isn't available.
|
Base |
| rtt_msec | Not populated for multicast traffic. | Base |
| round_trip_time | Not populated for multicast traffic. | Base |
| bytes_sent |
int64
Populated as follows:
bytes_sent: 900, and one with bytes_sent: 100.
|
Base |
| packets_sent |
int64
Populated as follows:
packets_sent: 90, and one with
packets_sent: 10.
|
Base |
| Source and destination metadata fields | ||
| dest_multicast_group_range |
MulticastGroupDetails
If the destination of the flow is a multicast group IP address and reporter of the flow is a multicast producer, then this field is populated with multicast domain and group range details. |
Metadata |
| dest_instance |
InstanceDetails
Populated as follows:
|
Metadata |
| dest_vpc |
VpcDetails
Populated as follows:
|
Metadata |
Latencies field format
| Field | Type | Description |
|---|---|---|
| median_msec | double | The median latency as measured during the aggregation interval. |
MulticastGroupDetails field format
| Field | Type | Description |
|---|---|---|
| project_id | string | The ID of the multicast administrator project. |
| location | string | The zone of the multicast producer. |
| name | string | The name of the multicast group range that contains the group IP address that traffic was sent to. |
| domain | string | The name of the multicast domain that contains the group range. |
InstanceDetails field format differences
If the multicast producer and consumer are in separate projects and
cross-project annotations are disabled, the following identifiers are used
for the destination instance. These fields are populated because
the regular string fields vm_name and project_id aren't available.
| Field | Type | Description |
|---|---|---|
| instance_id | int64 | Integer ID of the instance. |
| project_number | int64 | Project number for the instance. |
VpcDetails field format differences
If the multicast producer and consumer are in separate projects and
cross-project annotations are disabled, the following identifiers are used
for the destination VPC network. These fields are populated because
the regular string fields vpc_name or project_id aren't available.
| Field | Type | Description |
|---|---|---|
| vpc_id | int64 | Integer ID of the VPC network. |
| project_number | int64 | Project number for the VPC network. |
Record format for multicast consumers
The following table describes the unique fields and field format differences in VPC Flow Logs records for multicast traffic when the reporter of the flow is a multicast consumer.
For a full list of fields in VPC Flow Logs records, see About VPC Flow Logs records.
| Field | Field format | Field type: Base or optional metadata |
|---|---|---|
| rtt_msec | Not populated for multicast traffic. | Base |
| round_trip_time | Not populated for multicast traffic. | Base |
| src_multicast_group_consumer_activation |
MulticastGroupConsumerActivationDetails
If the destination of the flow is a multicast group IP address and reporter of the flow is a multicast consumer, then this field is populated with multicast consumer association and group consumer activation details. |
Metadata |
MulticastGroupConsumerActivationDetails field format
| Field | Type | Description |
|---|---|---|
| project_id | string | The ID of the project that contains the multicast consumer VPC network. |
| location | string | The zone of the multicast consumer. |
| name | string | The name of the multicast group consumer activation that was created when the multicast consumer VPC network was activated for the group range. |
| domain_association | string | The name of the multicast consumer association between the multicast consumer VPC network and the domain. |
View flow logs
To view flow logs, do the following:
- If you haven't already, configure VPC Flow Logs. See Configure VPC Flow Logs in the VPC Flow Logs documentation.
- Follow the steps to access flow logs.
What's next
- Get an overview of multicast observability
- View multicast group membership event logs
- Monitor membership metrics for multicast