https://github.com/chanakaudaya/wso2-is-custom-logger
This project contains implementation of a custom log publisher which prints session information to AUDIT log file
https://github.com/chanakaudaya/wso2-is-custom-logger
audit-log log4j wso2 wso2-identity-server
Last synced: about 1 month ago
JSON representation
This project contains implementation of a custom log publisher which prints session information to AUDIT log file
- Host: GitHub
- URL: https://github.com/chanakaudaya/wso2-is-custom-logger
- Owner: chanakaudaya
- License: apache-2.0
- Created: 2018-09-25T11:16:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-25T11:31:51.000Z (over 6 years ago)
- Last Synced: 2025-01-30T21:32:14.952Z (3 months ago)
- Topics: audit-log, log4j, wso2, wso2-identity-server
- Language: Java
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WSO2-IS-Custom-Logger
This project contains implementation of a custom log publisher which prints session information to AUDIT log file# Instructions to use
- Clone the repository
- Build the source code with maven (mvn clean install)
- Copy the jar file created in /target directory to IS_HOME/repository/components/dropins directory
- Enable the event publisher in IS_HOME/repository/conf/identity/identity.xml file
- Restart the WSO2 Identity Server
- Now enable SSO for an application as mentioned in below documentation
(WSO2 IS documentation)[https://docs.wso2.com/display/IS541/Configuring+Single+Sign-On]
- When you log into the travelocity.com application as mentioned in the above documentation, you will see a log entry
within the IS_HOME/repository/logs/audit.log file similar to below text.[2018-09-25 16:39:57,646] INFO {AUDIT_LOG}- Logging from custom logger - SessionID created :1031ee5a85ec54112991a2201619eaa6e449a1d03408cdb82739eb9a6ef0e744 for user : [email protected]
[2018-09-25 16:40:06,268] INFO {AUDIT_LOG}- Logging from custom logger - SessionID terminated :1031ee5a85ec54112991a2201619eaa6e449a1d03408cdb82739eb9a6ef0e744 for user : [email protected]