curl --request GET \
--url http://localhost:3000/api/agents/{agentId}/logs{
"success": true,
"data": {
"logs": [
{
"level": 123,
"time": 123,
"msg": "<string>",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentName": "<string>"
}
],
"count": 123
}
}Retrieve logs for a specific agent
curl --request GET \
--url http://localhost:3000/api/agents/{agentId}/logs{
"success": true,
"data": {
"logs": [
{
"level": 123,
"time": 123,
"msg": "<string>",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentName": "<string>"
}
],
"count": 123
}
}ID of the agent
Timestamp (ms) to get logs from
Timestamp (ms) to get logs until
trace, debug, info, warn, error, fatal x <= 1000Agent logs retrieved successfully
true
Show child attributes
Was this page helpful?