Arguments
Name or route of the worker to tail
Options
Display Options
The format of log entriesChoices:
json, prettyDefault: pretty (if terminal supports TTY), json otherwiseFilter Options
Filter by invocation statusChoices:
ok, error, canceledFilter by HTTP header
Filter by HTTP method
Adds a percentage of requests to log sampling rate
Filter by a text match in console.log messages
Filter by the IP address the request originates from. Use “self” to filter for your own IP
Filter by Worker version
If a log would have been filtered out, send it through anyway alongside the filter which would have blocked itDefault:
falseExamples
Tail a Worker by name
Tail a Worker by route
Filter by status
Filter by HTTP method
Filter by search term
Output as JSON
Filter by your own IP
Sample 10% of requests
Filter by specific header
Filter by Worker version
Output Formats
Pretty Format (default for TTY)
Human-readable output with colors and formatting:JSON Format
Machine-readable JSON output, one event per line:Filtering
Status Filtering
Filter by request outcome:Method Filtering
Filter by HTTP method:Search Filtering
Filter by text in console.log messages:IP Filtering
Filter by client IP address:Sampling
Reduce log volume by sampling:Worker Identification
By Name
Tail a Worker by its name:By Route
Tail a Worker by its route (must contain a dot):.) or a worker name.
Connection Management
The tail session maintains a WebSocket connection to Cloudflare’s logging service. Wrangler automatically:- Pings the connection every 10 seconds to detect disconnections
- Exits gracefully when the connection is lost
- Cleans up the tail on exit
Ctrl+C to stop tailing and close the connection.