creamy-tiger-14805
10/14/2025, 11:46 AMtall-airline-16756
10/14/2025, 11:46 AMtall-airline-16756
10/14/2025, 11:47 AMDATADOG_TOKEN secret from your deployment configuration. Without this token, the logs won’t be sent to Datadog anymore.
• JavaScript/React SDK: Make sure that setLogExtension isn’t being called with a Datadog logging function. Also, if you’re using environment variables like NEXT_PUBLIC_DATADOG_CLIENT_TOKEN, you’ll want to unset or remove them.
• React Native SDK: Just like with the JavaScript SDK, double-check that no custom setLogExtension is forwarding logs to Datadog.
• Self-Hosted Deployments: You’ll want to remove any external log shippers or Datadog agent configurations from your infrastructure.
If you’d like, I’m here to guide you through any specific configuration or questions you have—just let me know!
Sources: pnpm-lock.yaml | docs/variables/log.html | livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/log.py | livekit-ffi/src/server/logger.rs | Log collection | LiveKit Docscreamy-tiger-14805
10/14/2025, 11:55 AMtall-airline-16756
10/14/2025, 11:56 AMDATADOG_TOKEN is a valid Datadog client token (not an API key). Also, if your Datadog account is in a region other than us1, make sure to set the DATADOG_REGION secret accordingly (like us3, eu, or ap1).
• Check the update: You can use the LiveKit CLI by running livekit-cli list-secrets to confirm the secret was updated. Remember, updating the secret should trigger a rolling restart of the agent to apply the changes.
• Log type: LiveKit Cloud sends only agent runtime logs (stdout/stderr) to Datadog. So, make sure you're checking the right Datadog stream, filtering by source:<your-agent-id>.
• Client vs. server logs: If you're looking for client-side logs (like from a browser), please verify that @datadog/browser-logs and the setLogExtension function are properly set up in your application code.
If you're still having trouble, a quick redeploy of your agent might help ensure the rolling restart completed successfully. I'm here if you need any more help—just let me know!
Sources: How to Send Logs from the JavaScript SDK to Providers like Datadog | Getting Help & Troubleshooting | livekit/livekit_composite | DeepWiki | Log collection | LiveKit Docs | Secrets management | LiveKit Docs | pnpm-lock.yamlcreamy-tiger-14805
10/14/2025, 11:59 AMtall-airline-16756
10/14/2025, 11:59 AMlk agent secrets --id <agent-id>
This command will show you all the secrets for the agent you specify. If you don’t provide an --id, it will automatically use the agent ID from the livekit.toml file in your current directory.
• Update Secrets:
If you want to update secrets directly, you can use:
lk agent update-secrets --id <agent-id> --secrets KEY1=VALUE1 --secrets KEY2=VALUE2 --overwrite
Or, if you prefer to update them using a file like .env.production, try:
lk agent update-secrets --id <agent-id> --secrets-file .env.production
Just a quick note: the --overwrite flag will replace all existing secrets, so keep that in mind!
If you have any questions or need a hand with anything else, please don’t hesitate to ask. I’m here to support you!
Sources: Community & Support | livekit/livekit_composite | DeepWiki | cmd/lk/agent.go | CLI Tools & Token Management | livekit/livekit_composite | DeepWiki | Secrets management | LiveKit Docscreamy-tiger-14805
10/14/2025, 12:01 PMtall-airline-16756
10/14/2025, 12:01 PMcreamy-tiger-14805
10/17/2025, 12:20 PMtall-airline-16756
10/17/2025, 12:21 PMDATADOG_TOKEN and DATADOG_REGION are correctly set for LiveKit Cloud. If you’re working with browser applications, make sure the NEXT_PUBLIC_DATADOG_CLIENT_TOKEN and NEXT_PUBLIC_DATADOG_SITE environment variables are properly configured.
• Log Level and Filtering: Sometimes the log level might be set too high, which can filter out some important logs. Try adjusting the log level temporarily to see if more logs come through.
• LiveKit Cloud Limitations: Keep in mind that logs are forwarded only from the newest worker instance, and LiveKit Cloud doesn’t store runtime logs. It’s a good idea to ensure your Datadog setup is capturing logs from all instances.
• Timing Issues: At the start, connection logs may not include room context until the WebSocket connection is fully established.
For troubleshooting, I recommend verifying your configuration, checking your network connectivity, and keeping an eye out for any errors in your application. If you’d like, I’m here to help you with any specific part of your setup—just let me know!
Sources: Log collection | LiveKit Docs | pnpm-lock.yaml | How to Send Logs from the JavaScript SDK to Providers like Datadogcreamy-tiger-14805
10/17/2025, 12:23 PMlk agent update-secrets but I am not seeing those in my lk agent secretstall-airline-16756
10/17/2025, 12:25 PMlk agent secrets. Let’s walk through some common reasons and helpful steps to get this sorted out together:
• Filtered Secrets: Some secrets like LIVEKIT_API_KEY, LIVEKIT_API_SECRET, and LIVEKIT_URL are automatically filtered out. So, even if they’re updated successfully, they won’t appear in the list.
• Update Confirmation: After running lk agent update-secrets, please check that you see a success message such as "Updated agent secrets." If there’s an error, the output usually gives clues on what went wrong.
• Agent Restart: When you update secrets, the agent goes through a rolling restart. It’s a good idea to wait a moment for that to finish, then check the agent’s status with lk agent status.
• Agent ID: Make sure you’re using the same agent ID when updating and listing secrets. If you don’t specify an ID, the CLI defaults to the agent ID in the livekit.toml file in your current directory.
If you’re still seeing issues after these checks, please feel free to share the exact secret names (with values redacted), the output from the update command, and the agent status. I’m here to help you troubleshoot further!
Sources: Secrets management | LiveKit Docs | CLI Tools & Token Management | livekit/livekit_composite | DeepWiki | Agent deployment CLI reference | LiveKit Docs | cmd/lk/agent.go