userid on;
userid_name uid;
userid_domain example.com;
userid_path /;
userid_expires max;
userid_p3p 'policyref="/w3c/p3p.xml", CP="CUR ADM OUR NOR STA NID"';
set $uid '-';
if ( $uid_set != '' ){
set $uid $uid_set;
}
if ( $uid_got != '' ){
set $uid $uid_got;
}
proxy_set_header X-UUID $uid;
log_format ltsv "time:$mtime"
"\tmethod:$request_method"
"\thost:$host"
"\turi:$uri"
"\tquery:$args"
"\tstatus:$status"
"\tip:$http_x_forwarded_for"
"\tua:$http_user_agent"
"\treferer:$http_referer"
"\tuid:$uid";
access_log /var/log/nginx/access.ltsv ltsv;