cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

💡 Allow mapping request and response logs in `cloudflared tail`

Open tomelliot opened this issue 6 months ago • 0 comments

Describe the feature you'd like Combining related HTTP request and response logs onto a single line, or providing info in both lines to allow mapping them together.

Describe alternatives you've considered None that I know of - as far as I know there's no information in the cloudflared tail output that allows mapping between a request and the response.

Additional context I'm currently using a one-liner to try and clean up the output and make it easier to parse. cloudflared tail --output=json xyz | jq -r --unbuffered '[.time, (.fields.path // "none"), .message] | @tsv' | awk '{printf "%-25s %-40s %-s\n", $1, $2, substr($0, index($0, $3))}'

tomelliot avatar Aug 08 '24 14:08 tomelliot