I am trying to log cookies but they have a dash in the name as such:
"Member-v1.0=$cookie_Member-v1.0"
My logs come through as:
Member-v1.0=--v1.0
Is there a work around?
I’ve tried wrapping the name in curly brackets and also using
underscores but get an error about an unmatched bracket or no value.
I’ve tried the following formats:
On Mon, Mar 12, 2012 at 02:38:08PM -0400, Hates_ wrote:
I’ve tried wrapping the name in curly brackets and also using
Apache :
Currently, the names of nginx variables can be composed from
upper and lower English letters, digits and underscores. The
dash and dot characters are thus invalid.
Without patching the code, you should be able to log the entire
value of the “Cookie” request header field with the $http_cookie
variable. It can also be useful if you have cookies whose names
only differ in case as $cookie_ doesn’t differentiate
between upper and lower case: