can't get MDC values in my logs
Chad La Joie
lajoie at itumi.biz
Thu Feb 9 14:36:27 GMT 2012
Well, before you go further you'll need to upgrade the IdP. There
were some bugs around this in older versions. I don't know if that
version was affected but it certainly is affected by the various
security issues we've noted since then.
On Thu, Feb 9, 2012 at 09:33, Stefano Zanmarchi <zanmarchi at gmail.com> wrote:
> Hi,
> following the wiki
> https://wiki.shibboleth.net/confluence/display/SHIB2/IdPLogging#IdPLogging-MappedDiagnosticContext
> I've tried to add %mdc{KEY} information to my idp-audit.log file, but
> I get empty values
> for all KEY values (clientIP, idpSessionId, JSESSIONID).
> Here's is my idp-audit.log section, am I doing something wrong or
> might there be a bug
> in my IdP version (2.2.1 on Tomcat 6.0.29)?
> Thank you very much,
> Stefano
>
> <appender name="IDP_AUDIT"
> class="ch.qos.logback.core.rolling.RollingFileAppender">
> <File>/home/idpadmin/shibboleth-idp/logs/idp-audit.log</File>
> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
> <FileNamePattern>/home/idpadmin/shibboleth-idp/logs/idp-audit-%d{yyyy-MM-dd}.log</FileNamePattern>
> </rollingPolicy>
> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
> <charset>UTF-8</charset>
> <Pattern>[%mdc{clientIP}] - %msg%n</Pattern>
> </encoder>
> </appender>
> --
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
--
Chad La Joie
www.itumi.biz
trusted identities, delivered
More information about the users
mailing list