Appearance
Fresh
docker sandbox network log
Back
docker sandbox network log
Copy as Markdown
Open MarkdownAsk Docs AIClaudeOpen in Claude
| Description | Show network logs | | Usage | docker sandbox network log |
Description
Show network logs
Options
| Option | Default | Description |
|---|---|---|
--json | Output in JSON format | |
--limit | Maximum number of log entries to show | |
-q, --quiet | Only display log entries |
Examples
Show network logs
console
$ docker sandbox network log
2026-01-29T10:15:23Z sandbox=my-sandbox request GET https://api.example.com/data allowed
2026-01-29T10:15:24Z sandbox=my-sandbox request POST https://api.example.com/submit allowed
2026-01-29T10:15:25Z sandbox=my-sandbox request GET https://blocked.example.com/ deniedShow only log entries (--quiet)
text
--quietSuppress headers and only show log entries:
console
$ docker sandbox network log --quiet
2026-01-29T10:15:23Z sandbox=my-sandbox request GET https://api.example.com/data allowed
2026-01-29T10:15:24Z sandbox=my-sandbox request POST https://api.example.com/submit allowedLimit number of entries (--limit)
text
--limit NShow only the last N log entries:
console
$ docker sandbox network log --limit 10JSON output (--json)
Output logs in JSON format for parsing:
console
$ docker sandbox network log --json
{
"entries": [\
{\
"timestamp": "2026-01-29T10:15:23Z",\
"sandbox": "my-sandbox",\
"type": "request",\
"method": "GET",\
"url": "https://api.example.com/data",\
"action": "allowed"\
}\
]
}