how to obtain logs on livekit
# ask-ai
q
how to obtain logs on livekit
t
Thanks for reaching out, Nauman. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to help you get the logs you need from LiveKit! Depending on what kind of logs you're looking for and how you've set things up, there are a few ways to do this: • Runtime Logs: You can easily stream real-time logs from the latest running instance using the LiveKit CLI with the command
lk agent logs
. If you want to keep logs for a longer time, you can forward them to external services like Datadog, CloudWatch, Sentry, or New Relic by setting up the right secrets. • Build Logs: To check build logs, just use the CLI command
lk agent logs --log-type=build
, or if you prefer, you can view past build logs anytime on the LiveKit Cloud dashboard. • Log Levels: You also have control over what logs are collected and forwarded by adjusting the log level (like DEBUG or INFO) directly in your Dockerfile. If you'd like to dive deeper, feel free to explore the Logs, metrics, and telemetry guide or the Agents CLI reference. And of course, if you have any questions along the way, I'm here to help! Sources: Log collection | LiveKit Docs | Log collection | LiveKit Docs | Docs::Agents
q
we need sip logs
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!