Enable SailPoint IIQ Logs in Windows

Which IIQ version are you inquiring about?

Version 8.3

Please share any images or screenshots, if relevant.




Share all details related to your problem, including any error messages you may have received.

Hello All,

I am trying to enable IIQ logs in Windows and need some help please.

Here are the steps, I have performed till now:

I have reloaded the logging configuration in debug logging page.
Uncommented the below mentioned lines in log4j2.properties file:
appender.rolling.type=RollingFile
appender.rolling.name=RollingFile
appender.rolling.fileName=C:/SailPoint Logs/sailpoint.logs
appender.rolling.filePattern=C:/SailPoint Logs/sailpoint-%d{MM-dd}.log
appender.rolling.layout.type=PatternLayout
appender.rolling.layout.pattern=%d{ISO8601} %5p %t %c{4}:%L - %m%n
appender.rolling.policies.type=Policies
appender.rolling.policies.size.type=SizeBasedTriggeringPolicy
appender.rolling.policies.size.size=200MB
appender.rolling.strategy.type=DefaultRolloverStrategy
appender.rolling.strategy.max=15

rootLogger.appenderRef.rolling.ref=RollingFile

logger.apiMeter.name=sailpoint.api.Meter
logger.apiMeter.level=info
logger.apiMeter.appenderRef.meter.ref=meter


After performing all the above mentioned steps, logs have not got enabled and no logs file is getting generated.

Please find all the screenshot attached for reference

Thank you in advance!

Hi @ArpitaSB Try this…

appender.RollingFile.type = RollingFile
appender.RollingFile.name = file
appender.RollingFile.fileName=/opt/sailpoint/tomcat/logs/sailpoint.log
appender.RollingFile.filePattern = ${LOG_DIR}/application.%d{dd-MMM}.log.gz
appender.RollingFile.layout.type = PatternLayout
appender.RollingFile.layout.pattern = %d{ISO8601} %5p %t %c{4}:%L - %m%n
appender.RollingFile.policies.type = Policies
appender.RollingFile.policies.size.type = SizeBasedTriggeringPolicy
appender.RollingFile.policies.size.size=10MB
appender.RollingFile.strategy.type = DefaultRolloverStrategy
appender.RollingFile.strategy.max = 5

rootLogger.appenderRef.file.ref=file

Hello @MuhammadMustafa

I tried this mentioned piece of code. But still no success.

Hi @ArpitaSB it’s working for me, did you restart the Tomcat Service?
also, did you change this line (rootLogger.appenderRef.rolling.ref=RollingFile)
with that one: (rootLogger.appenderRef.file.ref=file)

Hello @MuhammadMustafa

Earlier, I didn’t restart the service. I did it now but still it is not working.
Yes, I have changed the mentioned line.
Please find below the piece of code that I am using currently after making the changes:

appender.RollingFile.type = RollingFile
appender.RollingFile.name = file
appender.RollingFile.fileName=C:/SailPoint Logs/sailpoint.log
appender.RollingFile.filePattern = ${LOG_DIR}/application.%d{dd-MMM}.log.gz
appender.RollingFile.layout.type = PatternLayout
appender.RollingFile.layout.pattern = %d{ISO8601} %5p %t %c{4}:%L - %m%n
appender.RollingFile.policies.type = Policies
appender.RollingFile.policies.size.type = SizeBasedTriggeringPolicy
appender.RollingFile.policies.size.size=10MB
appender.RollingFile.strategy.type = DefaultRolloverStrategy
appender.RollingFile.strategy.max = 5

rootLogger.appenderRef.file.ref=file

hmmmmm, actually from my POV nothing is supposed to prevent it from working, even it’s working for me…

Also, I reviewed the Wiki for “Configure Rollingfile loggers in log4j2.properties”
in this link: Configure Rollingfile loggers in log4j2.properties - Compass and I can’t notice anything different.

Anyways, if you can check the permissions and the user you are using can create/update files “which I doubt that will be the issue”, but anyway, you will not lose anything…

Hi @ArpitaSB ,

Hope you have checked the security permission if the folder you are writing log files, i agree with others here, i also do not see anything additional needs to be done with log4j2.properties files.

Thanks,
Dheeraj

2 Likes

Have you tried using the windows file path (backslash not forward)

appender.RollingFile.fileName=C:\SailPoint Logs\sailpoint.log

If that doesn’t work it is likely a permissions issue you can test by pointing to tomcat logs folder to see if the file does get created.

2 Likes

Hello @MuhammadMustafa @dheerajk27 @julian_bass

It worked!
Thank you so much for all your help! :blush:

1 Like

Perfect!, glad to hear :slight_smile:

1 Like

Thankyou for confirming, please mark this thread as resolved, so that others can refer this discussion in future with same issue.

1 Like

Sure @dheerajk27 . How can I mark the thread as completed? Sorry, I am kind of beginners on this portal so not sure how to do it.

you should be able to see solution tick on the comment, you can mark it.