Share feedback
Answers are generated based on the documentation.

docker sandbox network log

DescriptionShow network logs
Usagedocker sandbox network log

Description

Warning

The Docker Desktop-integrated docker sandbox commands are deprecated and replaced by the standalone sbx CLI. This deprecation applies only to the Docker Desktop integration, not to Docker Sandboxes.

Show network logs

Options

OptionDefaultDescription
--jsonOutput in JSON format
--limitMaximum number of log entries to show
-q, --quietOnly display log entries

Examples

Show network logs

$ 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/ denied

Show only log entries (--quiet)

--quiet

Suppress headers and only show log entries:

$ 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 allowed

Limit number of entries (--limit)

--limit N

Show only the last N log entries:

$ docker sandbox network log --limit 10

JSON output (--json)

Output logs in JSON format for parsing:

$ 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"
    }
  ]
}