Skip to content
Fresh

sbx policy log

Back

Reference

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

OptionDefaultDescription
--jsonOutput in JSON format
--limit0Maximum number of log entries to show
-q, --quietOnly display log entries
--typeallFilter logs by type: "all" or "network" (default "all")

Global options

OptionDefaultDescription
-D, --debugEnable debug logging

Examples

console
# 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