sbx policy log
| 内容説明 | Show sandbox policy logs |
|---|---|
| 利用方法 | 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
| オプション | デフォルト | 内容説明 |
|---|---|---|
--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" or "network" (default "all") |
Global options
| オプション | デフォルト | 内容説明 |
|---|---|---|
-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