able-jackal-84140
10/21/2025, 8:35 PMreq = api.RoomCompositeEgressRequest(
room_name=ctx.room.name,
audio_only=True,
file_outputs=[api.EncodedFileOutput(
file_type=api.EncodedFileType.OGG,
filepath="my-room-test.ogg",
s3=api.S3Upload(
bucket=os.getenv("AWS_BUCKET_NAME"),
region=os.getenv("AWS_REGION"),
access_key=os.getenv("AWS_ACCESS_KEY"),
secret=os.getenv("AWS_SECRET"),
),
)],
)
lkapi = api.LiveKitAPI()
res = await lkapi.egress.start_room_composite_egress(req)tall-airline-16756
10/21/2025, 8:36 PMtall-airline-16756
10/21/2025, 8:37 PMable-jackal-84140
10/21/2025, 8:39 PMtall-airline-16756
10/21/2025, 8:41 PMdocker logs <container-name> to see the logs from your egress container.
• For Kubernetes: Try kubectl logs <pod-name> to access the logs from your egress pod.
• For Systemd Services: Use journalctl -u <service-name> to view the logs related to the egress service.
• For LiveKit Cloud: You can check the logs right from the LiveKit Cloud dashboard.
If you’re running a self-hosted deployment, just make sure the log_level in your egress configuration file is set to info or `debug`—this will help capture more detailed logs.
Please feel free to reach out if you’d like any help with accessing or understanding these logs—I’m here to support you!
Sources: pkg/service/egress.go | pkg/service/process.go | examples/egress.yaml | cmd/lk/egress.go | Create and configure a Plivo SIP trunk | LiveKit Docsable-jackal-84140
10/21/2025, 8:42 PMtall-airline-16756
10/21/2025, 8:45 PMstorage:
s3:
access_key: your-aws-access-key
secret: your-aws-secret-key
region: us-east-1
bucket: your-egress-bucket
1. Per-Request Configuration: If you want to specify S3 settings for individual egress requests, just include the S3 details right in the request payload. Something like this works well:
file_outputs=[api.EncodedFileOutput(
file_type=api.EncodedFileType.OGG,
filepath="my-room-test.ogg",
s3=api.S3Upload(
bucket="your-bucket",
region="us-east-1",
access_key="your-access-key",
secret="your-secret-key",
),
)]
1. Verify Permissions: It’s important to check that your S3 credentials have the right permissions, especially s3:PutObject, so files can be uploaded smoothly to your bucket.
2. Test the Configuration: Finally, start an egress session and keep an eye on the egress status to make sure your audio is being saved to S3 as expected.
If you run into any bumps along the way or want me to walk you through any of these steps in more detail, please don’t hesitate to reach out—I’m here to help!
Sources: Universal Egress | cmd/lk/examples/web-egress.json | Egress API | LiveKit Docs | README.md | deploy-egress.sh