Logs
Fetch and filter execution logs for a specific agent tool.
Usage
weni logs --agent <agent_key> --tool <tool_key> [--start-time ISO8601] [--end-time ISO8601] [--pattern TEXT]
Options
--agent, -a
(required): Agent key in your definition (e.g.cep_agent
).--tool, -t
(required): Tool key (e.g.get_address
).--start-time, -s
(optional): ISO 8601 datetime. Examples:2024-01-01T00:00:00
2024-01-01T00:00:00.000Z
--end-time, -e
(optional): ISO 8601 datetime, same formats as start.--pattern, -p
(optional): Simple substring filter. Regex (e.g.%...%
) is not supported.
Supported datetime formats include:
YYYY-MM-DDTHH:MM:SS
YYYY-MM-DDTHH:MM:SS.sss
- With timezone suffix:
Z
,+00:00
, etc.
Pagination
If more logs are available, you'll be prompted to fetch more. Choose p
to continue or q
to stop.