Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Route server peer logging
Use VPC Route Server peer logging when you need to:
Monitor BGP and BFD session health
Troubleshoot connection issues
Review historical session changes
Track network status
Pricing
-
CloudWatch: Data ingestion and archival
charges for vended logs apply when you publish route server peer logs to
CloudWatch Logs.
-
S3: Data ingestion and archival charges
for vended logs apply when you publish route server peer logs to Amazon
S3.
-
Data Firehose: Standard ingestion and
delivery charges apply.
Vended logs are logs from specific Amazon services that are available at
volume tiered pricing and delivered to CloudWatch Logs, Amazon S3, or Amazon
Data Firehose. For more information, open Amazon CloudWatch
Pricing, select Logs and find
Vended Logs.
{
"resource_arn": "arn:aws:ec2:us-east-1:111122223333:route-server-peer/rsp-1234567890abcdef0",
"event_timestamp": 1746643505367,
"type": "RouteStatus",
"status": "ADVERTISED",
"message": {
"prefix": "10.24.34.0/32",
"asPath": "65000",
"med": 100,
"nextHopIp": "10.24.34.1"
}
}
{
"resource_arn": "arn:aws:ec2:us-east-1:111122223333:route-server-peer/rsp-1234567890abcdef0",
"event_timestamp": 1746643490000,
"type": "BGPStatus",
"status": "UP",
"message": null
}
Where:
The resource_arn
is the ARN for the route server peer.
The event_timestamp
is the timestamp of the event.
The type
of log events we produce (RouteStatus
, BGPStatus
, BFDStatus
).
-
The status
field is the status update.
The message
field is currently only used for route attributes for the RouteStatus message type but may be populated with relevant information for any type.
- Amazon Management Console
-
To create route server peer logs:
Open the Amazon VPC console at
https://console.amazonaws.cn/vpc/.
In the navigation pane, under Virtual private cloud, choose Route servers.
On the Route servers page, choose Route server peers.
Choose the Log delivery tab.
Choose Add log delivery.
-
Choose a destination and configure the settings:
-
Amazon CloudWatch Logs
Log type: Types of logs to deliver. The only supported log
type is EVENT_LOGS.
Destination log group: The CloudWatch log group where logs will be sent. You can pick an existing log group or create a new one (example: /aws/vpc/route-server-peers).
Field selection: Data fields to include in your
logs.
-
Output format: How logs
are formatted:
Field delimiter: When using Text format, this is the character that separates fields (example: comma, tab, space).
-
Amazon S3
-
Amazon Data Firehose
-
Cross account
Log type: Types of logs to deliver. The only supported log
type is EVENT_LOGS.
Delivery destination ARN: The Amazon Resource Name of the Firehose delivery stream in another Amazon account.
Field selection: Data fields to include in your
logs.
Field delimiter: When using Text format, this is the character that separates fields.
-
In current account
Log type: Types of logs to deliver. The only supported log
type is EVENT_LOGS.
Delivery destination stream: The Firehose delivery stream in your account where logs will be sent. The stream must use the "Direct Put" source type.
Field selection: Data fields to include in your
logs.
-
Output format:
How logs are formatted:
Field delimiter: When using Text format, this is the character that separates fields.
- Command line
-
The commands in this section link to the Amazon CLI Reference documentation.
The documentation provides detailed descriptions of the options that you can use
when you run the commands.
To create route server peer logs:
-
Use the put-delivery-source command.
-
Example request
aws logs put-delivery-source --name "source-rsp-1234567890abcdef0" --resource-arn "arn:aws:ec2:us-east-1:111122223333:route-server-peer/rsp-1234567890abcdef0" --log-type "EVENT_LOGS"
-
Example response
{
"deliverySource": {
"name": "source-rsp-1234567890abcdef0",
"arn": "arn:aws:logs:us-east-1:111122223333:delivery-source:source-rsp-1234567890abcdef0",
"resourceArns": [
"arn:aws:ec2:us-east-1:111122223333:route-server-peer/rsp-1234567890abcdef0"
],
"service": "ec2",
"logType": "EVENT_LOGS"
}
}
-
Use the put-delivery-destination command.
-
The following Amazon CLI example creates a route server log. The logs are delivered to the specified log group.
-
Example request
aws logs put-delivery-destination --name "destination-rsp-abcdef01234567890" --destination-resource-arn "arn:aws:logs:us-east-1:111122223333:log-group:/aws/vendedlogs/ec2/route-server-peer/EVENT_LOGS/rsp-abcdef01234567890"
-
Example response
{
"deliveryDestination": {
"name": "destination-rsp-abcdef01234567890",
"arn": "arn:aws:logs:us-east-1:111122223333:delivery-destination:destination-rsp-abcdef01234567890",
"deliveryDestinationType": "CWL",
"deliveryDestinationConfiguration": {
"destinationResourceArn": "arn:aws:logs:us-east-1:111122223333:log-group:/aws/vendedlogs/ec2/route-server-peer/EVENT_LOGS/rsp-abcdef01234567890"
}
}
}
-
Use the create-delivery command.
-
Example request
aws logs create-delivery --delivery-source-name "source-rsp-1234567890abcdef0" --delivery-destination-arn "arn:aws:logs:us-east-1:111122223333:delivery-destination:destination-rsp-abcdef01234567890"
-
Example response
{
"delivery": {
"id": "1234567890abcdef0",
"arn": "arn:aws:logs:us-east-1:111122223333:delivery:1234567890abcdef0",
"deliverySourceName": "source-rsp-1234567890abcdef0",
"deliveryDestinationArn": "arn:aws:logs:us-east-1:111122223333:delivery-destination:destination-rsp-abcdef01234567890",
"deliveryDestinationType": "CWL",
"recordFields": [
"resource_arn",
"event_timestamp",
"type",
"status",
"message"
]
}
}