Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

How to log all sent set-cookie headers

$
0
0
Giving $sent_http_set_cookie in log_format logs only the first cookie that is set by Set-Cookie. Is there a way to log all the cookies that are sent using Set-Cookie.

This is the exact snippet in my nginx config
log_format main '$remote_addr [$time_local] '
'"$scheme $host $request" $status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'($request_time)'
'(($sent_http_set_cookie))';

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>