Saturday, July 25, 2020

Configure Log4j in Sailpoint


Configuration steps for Log4j :-

1. Navigate to the below path :
C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\idenityiq\WEB-INF\classes

2. Open the log4j file in edit mode

3. Uncomment the following four lines, then add the value "file" to 
the log4j.rootLogger list

  • log4j.appender.file=org.apache.log4j.RollingFileAppender
  • log4j.appender.file.File=C:/Windows/Temp/sailpoint.log
  • log4j.appender.file.layout.type=PatternLayout
  • log4j.appender.file.layout.ConversionPattern=%d{ISO8601} %5p %t %c{4}:%L - %m%n
  • log4j.appender.file.MaxFileSize=5000KB
  • log4j.appender.file.MaxBackIndex=10  

log4j.rootLogger=error,file

Note: If you don't want to print any logs in the console, please remove the stdout in the rootLogger (as mentioned above)

4. To print all the logs in the file, please restart the Apache Tomcat server


                                                            (OR)

# Login to debug page of sailpoint (http://localhost:8080/idenityiq/debug/logging.jsf)

# Click on  below icon and select logging
                    


# Click on Reload Logging Configuration


Note : Server restarting is not recommended in PROD, click on Reload Logging Configuration in debug page

----------------------------------------********************------------------------------------------

No comments:

Post a Comment

Fetch Members from Workgroup

  import java.util.ArrayList;   import java.util.Iterator;   import java.util.List;   import sailpoint.api.ObjectUtil;   import sailpoint.ob...