when using livekit agent cloud - how to differenti...
# ask-ai
s
when using livekit agent cloud - how to differentiate datadog logs from different projects ? The source attribute is set to the agent id which is static to agent but not to the project. whats the static attribute to link to the livekit project ?
t
Thanks for reaching out, Sameer. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — great question about Datadog logs and LiveKit Agent Cloud. The static attribute you should use is project_id. Agent logs include
project_id
(in addition to
agent_id
,
session_id
,
worker_id
,
room_name
, and
job_id
), so filter or group by
project_id
in Datadog to separate logs from different LiveKit projects. If you want extra clarity per-project, you can also add custom context fields via
ctx.log_context_fields
(Python) to include more explicit project or environment identifiers. Would you like a short example Datadog query or a JSON sample of log fields to use for filtering? Sources: Where to find your Agent Logs | LiveKit | Job lifecycle | LiveKit Documentation, with interactive elements