...
dans etc/cas/config/log4j2.xml
Mongo ticket registry
Il Avant CAS 7.x, il manque des indexes. Donc faire :
db.ticketGrantingTicketsCollection.createIndex({ ticketId: 1 })
db.serviceTicketsCollection.createIndex({ ticketId: 1 })
db.proxyTicketsCollection.createIndex({ ticketId: 1 })
db.proxyGrantingTicketsCollection.createIndex({ ticketId: 1 })
cas_audit.log
Le cas_audit.log n'est pas très utilisable comparé notamment au serviceStats.log qu'avait fait Julien Marchal ( https://github.com/EsupPortail/cas-toolbox-new/pull/3 ).
Voici un paramétrage plus intéressant :
...
Bloc de code |
---|
<AsyncLogger name="org.apereo.inspektr.audit.support" level="info" includeLocation="true" > <RegexFilter regex=".*(TICKET_GRANTING_TICKET_CREATED|AUTHENTICATION_FAILED|SERVICE_TICKET_CREATED).*" useRawMsg="true" /> <AppenderRef ref="casAudit"/> </AsyncLogger> |