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

Sudheer Vinukonda commented on TS-3446:
---------------------------------------

[~zwoop] suggested to write a (possibly, remap) plugin that could do this. The 
basic idea is something like the below:

 1) Copy the Cookie header to an @header 
 2) at the same time, trim / slice it as you see fit and 
 3) change the custom log format to log the new @y-cookie header (which is 
trimmed) 



> 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