Is it possible to search for logs for a certain ro...
# ask-ai
r
Is it possible to search for logs for a certain room using lk agent logs?
t
Thanks for reaching out, Rithvik. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking whether
lk agent logs
can search logs for a specific room. It cannot.
lk agent logs
streams logs from an agent instance (by agent ID or config) and does not support filtering or searching by room name/room ID. Logs may contain room identifiers in their messages, but to perform room-specific or historical searches you need to forward logs to an external log service (Datadog, CloudWatch, Sentry, New Relic) and filter there. Would you like guidance on forwarding agent logs to one of those services or an example filter to extract room IDs from the log messages? Sources: Log collection | LiveKit Docs
r
Sure what is an example of room ids
t
Room IDs start with "RM_" followed by a unique alphanumeric string. Example formats: •
RM_abc123
•
RM_7f4a9b2e
•
RM_x9Y2kL5
You’ll see these
RM_...
IDs in log messages once a room connection is established. Would you like an example log line and a suggested search/filter to extract room IDs when forwarding logs to Datadog or CloudWatch? Sources: Still Have Questions | How to Send Logs from the JavaScript SDK to Providers like Datadog