[ 
https://issues.apache.org/jira/browse/TS-3446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14364855#comment-14364855
 ] 

Scott Beardsley commented on TS-3446:
-------------------------------------

I don't see docs for trim here can you elaborate what trim does?:

https://docs.trafficserver.apache.org/en/latest/admin/event-logging-formats.en.html

Do you mean splice? I don't think splice would work since there is no way of 
knowing where the cookie falls in the string. This feature would require 
essentially a split on the semi-colon (and space?) dividing the cookie 
name/value pairs. Here is a good primer on the format:

http://curl.haxx.se/rfc/cookie_spec.html

BTW bonus points if the feature deals with set-cookie  response headers too 
(this is more complex though since you need to deal with scope and expires). 

> custom logging for Cookie header
> --------------------------------
>
>                 Key: TS-3446
>                 URL: https://issues.apache.org/jira/browse/TS-3446
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Scott Beardsley
>            Priority: Minor
>
> I have a use case that requires logging a specific cookie in the UA request. 
> The only way to do this today is to log the entire Cookie request header then 
> parse out the cookie name/value pair that I am interested in after the fact. 
> The problem with that approach is that some cookie data is sensitive and must 
> not exist in logs. Plus logging the entire cookie header is just wasteful. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to