You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a spring-boot application here (2.7.3) and logstash-logback-endcoder (7.2) in place.
If I use %cookie{cookie name} logstash-logback-encoder complains that %cookie is unknown which breaks the writing of access logs.
Using %reqCookie on the other hand works.
Is %cookie really valid or should the example in the docs use %reqCookie{cookiename} as well?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I just tried to log request cookies via logback-access making use of this field in my logback-access.xml:
https://logback.qos.ch/manual/layouts.html#reqCookie
I have a spring-boot application here (2.7.3) and logstash-logback-endcoder (7.2) in place.
If I use %cookie{cookie name} logstash-logback-encoder complains that %cookie is unknown which breaks the writing of access logs.
Using %reqCookie on the other hand works.
Is %cookie really valid or should the example in the docs use %reqCookie{cookiename} as well?
Beta Was this translation helpful? Give feedback.
All reactions