是否可以从Cookie为服务器响应(头: Set-Cookie)写入键'uuid‘的nginx访问日志值?
$cookie_uuid -返回发送客户端$sent_http_set_cookie的uuid -返回整个头集-Cookie:‘uuid=897587e7-a 733-422f-9 9daa b3105a5895aa;domain=domain.com;path=/;expires=Tue,09-8月-2033 01:17:54 GMT,但我只需要保存键'uuid’的值。
谢谢
发布于 2013-08-10 09:11:02
map $sent_http_set_cookie $resp_uuid {
~*uuid=(?<u>[0-9a-f-]+) $u;
}参考资料:
https://stackoverflow.com/questions/18138503
复制相似问题