Documentation
Feedback
Guides
API Reference

Guides
Guides
VTEX CX Platform (Weni)
VTEX CX Platform (Weni) CLI

Fetching and filtering agent logs

Fetch and filter execution logs.

Fetch and filter execution logs for a specific agent tool.

Usage


_10
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.

Examples


_10
# Basic
_10
weni logs -a cep_agent -t get_address
_10
_10
# With time range
_10
weni logs -a cep_agent -t get_address -s 2024-01-01T00:00:00 -e 2024-01-01T23:59:59
_10
_10
# With simple pattern
_10
weni logs -a cep_agent -t get_address -p error

Contributors
1
Photo of the contributor
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
Was this helpful?
Suggest edits (GitHub)
On this page