Do you see successful ones? The only difference in what is logged would be that the ACTION says "AUTHENTICATION_SUCCESS"PatrickOn Wed, Oct 12, 2016 at 9:03 AM, Tom Barber <tom.b...@meteorite.bi> wrote:Interesting Patrick, thanks for that. I have the audit log going but I don't see any failed authentication calls. Odd.TomOn Wed, Oct 12, 2016 at 1:59 PM, Patrick Gardella <patrick.gardella@asburyseminary.edu> wrote:Do you mean you just want to log that the login failed for a user? Not to print the password itself they used?You can do this in your log4j2.xml (depending on your CAS version - I'm using 4.2.6) by adding something like this in the Appenders section:<RollingFile name="auditlogfile" fileName="logs/cas_audit.log" append="true"filePattern="logs/cas_audit-%d{yyyy-MM-dd}-%i.log.gz"><PatternLayout pattern="%d %p [%c] - %m%n"/><Policies><OnStartupTriggeringPolicy /><SizeBasedTriggeringPolicy size="10 MB"/><TimeBasedTriggeringPolicy /></Policies></RollingFile>and this in the Loggers section:<AsyncLogger name="org.jasig.inspektr.audit.support" level="info" includeLocation="true"><AppenderRef ref="auditlogfile"/></AsyncLogger>This should print failures:2016-10-12 00:02:04,455 INFO [org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - Audit trail record BEGIN=============================================================WHO: johnsmithWHAT: Supplied credentials: [johnsmith]ACTION: AUTHENTICATION_FAILEDAPPLICATION: CASWHEN: Wed Oct 12 00:02:04 UTC 2016CLIENT IP ADDRESS: 192.168.1.1.SERVER IP ADDRESS: 192.168.25.10=============================================================Patrick+
--
CAS gitter chatroom: https://gitter.im/apereo/cas
CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
CAS documentation website: https://apereo.github.io/cas
CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CABML50cNX-DNnQ0NhPLKPuBAF8H%2B0U3XQNrC8FjX5Nbrzpn6Pw%40mail.gmail.com.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.
--