AWS CloudWatch Integration
If you use CloudWatch, the Aviatrix platform offers a CloudWatch agent for sending syslog from Aviatrix Controller and Aviatrix gateways to your configured AWS CloudWatch instance.
|
Configuring AWS CloudWatch
In order for Aviatrix Controllers and gateways in different AWS accounts to send/update logs to the collector’s AWS account, follow the instructions below to set up IAM role and policies on the collector’s AWS account.
-
Go to AWS console, create an IAM role with a name aviatrix-role-cloudwatch.
-
Add Trust-Relationships for Aviatrix Controllers' and all gateways' AWS accounts. If you are already using CloudWatch for logs from all your AWS accounts, you may have already built the trust relationship between accounts. If this is the case, skip this step.
-
Attach AWS IAM Cloudwatch policy to the role aviatrix-role-cloudwatch.
a: Create an IAM role aviatrix-role-cloudwatch, make sure the role name is "aviatrix-role-cloudwatch".
b: Add Trust-Relationships for controllers and gateways AWS accounts
c: Attach AWS IAM policy for "CloudWatchAgentServerPolicy" to the role
d: Retrieve the ARN of the IAM Role
Enable CloudWatch log on the Controller
If you are using the Aviatrix Controller user interface, you configure the Aviatrix CloudWatch agent in Controller > Settings > Logging > CloudWatch Agent.
|
If you are using the Aviatrix CoPilot user interface, you configure the Aviatrix CloudWatch agent in CoPilot > Settings > Configuration > Logging Services > CloudWatch Agent.
Verifying your AWS CloudWatch integration
In AWS CloudWatch:
To view the Aviatrix Controller’s and Gateways' CloudWatch Service Status:
Logs from CloudWatch can be exported to S3 buckets. Please follow AWS Documentation. |