lk cloud logs not visible. they are visible when r...
# ask-ai
c
lk cloud logs not visible. they are visible when running locally and when running inside docker locally, but not when running in cloud
t
Thanks for reaching out, Coste. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! I wanted to share that LiveKit Cloud doesn’t store runtime logs directly, which is why you see them locally and in Docker but not in the cloud. No worries though—you can easily view logs in LiveKit Cloud by using the LiveKit CLI with this command:
Copy code
lk agent logs follow
This will stream logs from the latest running instance of your agent and even show a brief snapshot of recent logs. If you’re looking for more detailed logging across all instances, you can set up log forwarding to external services like Datadog, CloudWatch, Sentry, or New Relic. I’d be happy to help you get that set up or answer any other questions you might have—just let me know! Sources: Log collection | LiveKit Docs | livekit-agents/livekit/agents/cli/log.py
c
all i get is the following: lk agent logs follow Using project [turbo-miles] Using agent [...]
t
It looks like the logs aren't showing up after you ran the command. No worries, let's work through this together! Could you please check a couple of things for me? • Do you have any active agents running in your LiveKit Cloud project right now? • Have you confirmed that the agent you're trying to follow is actually running and producing logs? • Are there any error messages or extra output after the 'Using agent [...]' line? Once we have these details, it'll be much easier to pinpoint what's going on and find the best solution for you.
c
yes, it's running and working but the logs are not visible
t
It’s great to hear your agent is running! Since the logs aren’t showing up, let’s work through a few steps together to get this sorted out: 1. First, double-check the agent’s status by running:
lk agent status --id <agent-id>
2. Make sure you’re using the right command to view the logs:
lk agent logs --id <agent-id> --log-type deploy
3. Sometimes trying different log types helps — for example,
deploy
for runtime logs or
build
for build logs. 4. Keep an eye out for any error messages or connection hiccups when you run the commands. 5. If things still aren’t working, setting up external log forwarding to tools like Datadog or CloudWatch can give you a fuller picture. If you’d like, I’m here to help guide you through any of these steps. Just let me know! Sources: Community & Support | livekit/livekit_composite | DeepWiki | CLI Tools & Token Management | livekit/livekit_composite | DeepWiki | autocomplete/fish_autocomplete | Log collection | LiveKit Docs | Troubleshooting & Common Issues | livekit/livekit_composite | DeepWiki