Skip to Content

Logs

APXY stores all captured traffic in one SQLite database, ~/.apxy/data/apxy.db. Every proxy and every workspace on the machine writes to it. You can query, search, and analyze it through the CLI and the Web UI.

Retention

Captured traffic survives proxy restarts. APXY keeps it for 24 hours, up to the newest 50000 records. It deletes older records when the proxy starts and every 10 minutes. To change the limits, pass these flags to apxy start:

apxy start --log-retention 72h --log-max-records 200000

--log-retention 0 keeps traffic of any age. --log-max-records 0 removes the record limit.

Workspaces

In a git worktree, apxy logs list and apxy logs search show the requests of this workspace and untagged requests. --all-workspaces shows every workspace. --from-workspace <id or name> shows another workspace and untagged requests. See Workspaces.

Web UI

In the Traffic group, the Live Traffic page shows all captured logs in a live-updating table:

  • Click any row to see full request/response details
  • Use protocol tabs (All/HTTP/HTTPS/WebSocket/JSON) to filter by type
  • Search by URL, host, method, or status in the filter panel
  • Toggle between comfortable and compact density views

Use Traffic → Overview when you want aggregate summaries after reviewing individual requests.

CLI

All apxy logs … subcommands (list, search, stats, clear, and more) are documented on CLI Reference → Traffic.

Quick example:

apxy logs list --limit 20

To pull one field out of many records, see apxy logs jsonpath in CLI Reference → Traffic.

For deeper inspection patterns, continue to Proxy Traffic and Request & Response Viewer.

Last updated on