busy-spoon-35253
10/06/2025, 4:11 AMtall-airline-16756
10/06/2025, 4:11 AMtall-airline-16756
10/06/2025, 4:11 AMAWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. If you’re not using the default us-west-2 region, don’t forget to specify AWS_REGION as well.
2. Log Format: LiveKit organizes logs with helpful metadata fields like host, service, source, and stream to make filtering in CloudWatch easier and more effective.
3. IAM Role: It’s best to use a least-privilege IAM role that has permissions for logs:CreateLogStream and logs:PutLogEvents to keep your setup secure.
4. CloudWatch Insights: You can use queries to filter your logs, for example by error level or specific agent IDs, which really helps when you’re troubleshooting.
5. Optional Development Enhancements: For a nicer experience during development, try enabling colored logging locally with devmode=True. It makes the logs easier to read.
If you run into any questions or need a hand with the setup or troubleshooting, please don’t hesitate to reach out—I’m here to help!
Sources: Log collection | LiveKit Docs | livekit-plugins/livekit-plugins-clova/livekit/plugins/clova/log.py | aws-ecs/cloudformation.yamlbusy-spoon-35253
10/06/2025, 9:15 AMtall-airline-16756
10/06/2025, 9:16 AMAWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY as secrets in LiveKit. These credentials allow LiveKit to securely forward logs to CloudWatch.
2. Set AWS Region (Optional): By default, logs go to us-west-2. If you’d like to use a different region, just set the AWS_REGION secret (for example, us-east-1).
3. Log Forwarding: Once everything is set up, LiveKit runtime logs (stdout/stderr) will automatically be sent to CloudWatch. Just a heads-up, LiveKit Cloud doesn’t store these logs itself.
4. IAM Permissions: Please make sure the AWS credentials you’re using have permissions for logs:CreateLogStream and logs:PutLogEvents. This is important for smooth log forwarding.
5. Verify Logs: You can then check your CloudWatch log groups to see if the logs are coming through. If you want to get more detailed, CloudWatch Insights is great for filtering and analyzing your logs.
If you run into any questions or want some help with any of the steps, just let me know—I’m here to help!
Sources: Log collection | LiveKit Docs | livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/stt.py | aws-ecs/cloudformation.yaml