Share feedback
Answers are generated based on the documentation.

sbx policy log

Description Show sandbox policy logs
Usage sbx policy log [SANDBOX] [flags]

Description

Show policy logs for all sandboxes, or filter by a specific sandbox name.

Displays which hosts were allowed or blocked by the proxy, along with the matching rule, proxy type, and request count. Useful for debugging connectivity issues or auditing network activity.

Options

Option Default Description
--json Output in JSON format
--limit 0 Maximum number of log entries to show
-q, --quiet Only display log entries
--type all Filter logs by type: "all", "network", or "filesystem" (filesystem logs are not supported yet; default "all")

Global options

Option Default Description
-D, --debug Enable debug logging

Examples

# Show all policy logs
sbx policy log

# Show logs for a specific sandbox
sbx policy log my-sandbox

# Output in JSON format
sbx policy log --json

# Show the last 20 entries
sbx policy log --limit 20