Best way to look ath the logs?
# ask-ai
c
Best way to look ath the logs?
t
Thanks for reaching out, Santiago. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd be happy to help! Could you please clarify which type of logs you're interested in viewing? For example, are you looking for server logs, client-side logs, or logs related to a specific feature or event? Let me know so I can assist you better.
c
agent server logs is there eany batter then this lk agent logs?
t
To help you view and analyze your LiveKit agent server logs more smoothly, here are some friendly tips you can try: • LiveKit CLI: You can use the command
lk agent logs
to stream your runtime logs in real-time, including logs from the latest worker instance. If you're interested in Docker build logs, just run
lk agent logs --log-type=build
. • Log Forwarding: For a more long-term and detailed approach, consider forwarding your logs to monitoring services like Datadog, CloudWatch, Sentry, or New Relic. For instance, adding a Datadog client token is simple with
lk agent update-secrets --secrets "DATADOG_TOKEN=your-client-token"
. • Log Levels: You can also tweak the verbosity by setting the log level in your Dockerfile. The default is INFO, but switching to DEBUG can give you more insight when troubleshooting. Using structured logging and external tools can really enhance your analysis. If you'd like, I’m here to guide you through setting any of these up—just let me know! Sources: Log collection | LiveKit Docs | Log collection | LiveKit Docs | Logs, metrics, and telemetry | LiveKit Docs | README.md
c
can new relic agent interfer with typical fucntionality of livekit?
how should i instrument new relic?
t
I'm happy to help you get started with instrumenting New Relic with LiveKit! Here’s a simple way to do it: • First, grab your New Relic license key from your New Relic account settings. • Next, run this command to set up log forwarding:
lk agent update-secrets --secrets "NEW_RELIC_LICENSE_KEY=your-license-key"
. This will take care of automatically sending all your agent runtime logs to your New Relic account. About any concerns with interference—rest assured, there’s no indication that integrating New Relic affects how LiveKit functions. It works quietly in the background, just forwarding logs without changing agent behavior or using extra processing power. That said, it’s always wise to keep an eye on your system’s performance after turning on any telemetry, especially when you’re running in production. If you have any questions or need a hand with the setup, please don’t hesitate to reach out. I’m here to help! Sources: Log collection | LiveKit Docs | Docs/audio.md