How to add client IP to idp-audit.log in IDP3
Kevin Foote
kpfoote at uoregon.edu
Wed Oct 21 18:38:50 EDT 2015
> On Oct 21, 2015, at 3:02 PM, O'Dowd, Josh <Josh.O'Dowd at mso.umt.edu> wrote:
>
> Good afternoon,
>
> I am looking at the /conf/audit.xml to extend the default auditing messaging to append the client IP address.
Just to follow Scott’s suggestion :-)
Clip from my logback.xml
<appender name="IDP_AUDIT" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>${idp.home}/logs/idp-audit.log</File>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${idp.home}/logs/idp-audit-%d{yyyy-MM-dd}.log.gz</fileNamePattern>
<maxHistory>180</maxHistory>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<charset>UTF-8</charset>
<Pattern>%msg|%mdc{idp.remote_addr}|%n</Pattern>
</encoder>
</appender>
--------
thanks
kevin.foote
More information about the users
mailing list