Enable iiq logs in windows

Dear Commnunity,

I need help to enable and get the logs from iiq in windows

here is what I did:

in the log4j2.properties

location of the log
image

but logs nothing

Thanks in advance

Make sure you uncomment the file root logger line in the file:
“rootLogger.appenderRef.file.ref=file”

1 Like

Hi @fugitiva

It looks like the issue is because the path mentioned in Server File Path in IIQ is not in proper format. Since IIQ is in windows machine the path should be mentioned with ''. Please find the example of me test system below. The logs are being generated as expected without any issues.

Window System, uses '' between folders and sub-folders, while linux system uses ‘/’.

2 Likes

Dear Jarin,

Thank you for your answer.

I did the changing you mentioned, by the way adding " " a quotation in iiq “Service File Path” break the system so i remove it.

I follow the advise from @ Abdurahman and enable in the log4j2. properties
“rootLogger.appenderRef.file.ref=file”

So far I have in the log4j2.properties:

appender.rolling.fileName=C:/Users/myUser/Documents/sailpointLogs/sailpoint.log
appender.rolling.filePattern=C:/Users/myUser/Documents/sailpointLogs/sailpoint-%d{yyyy-MM-dd}-%i.log.gz
rootLogger.appenderRef.file.ref=file

the location of the sailpoint.log
C:\Users\myUser\Documents\sailpointLogs\sailpoint.log

and in the iiq

still not working.
Should I change in the configuration file log4j2 from \ to / ??

Thanks in advance

1 Like

Hi @fugitiva,

Please find the log4j.properties file snippet I am using for reference. I am having time-based trigger.

##########################################################
### Default log file ###
##########################################################
appender.file.type=RollingFile
appender.file.name=file
appender.file.fileName=C:/Mine/Sailpoint/Logs/sailpoint.log
appender.file.filePattern = C:/Mine/Sailpoint/Logs/sailpoint.%d{dd-MMM}.log
appender.file.layout.type=PatternLayout
appender.file.layout.pattern=%d{ISO8601} %5p %t %c{4}:%L - %m%n
appender.file.policies.type = Policies
appender.file.policies.time.type = TimeBasedTriggeringPolicy
appender.file.policies.time.interval = 1

My logs are working as expected when providing the path with '' as file separator. The only thing I noticed is that the file separator is changed to ‘/’ automatically by IIQ. This is visible when opening logging page again.

2 Likes

I see you are using log4.properties, in version 8.3 it was switch to log4j2.properties. Should I add log4.properties to get the logs? I I should use the new log4j2.properties?

1 Like

enable that line give me the error:
main ERROR Unable to locate appender “file” for logger config "root

1 Like

Hi @fugitiva
My bad, I mentioned log4j.properties instead of log4j2.properties. I am using IIQ 8.2 version and it is using log4j2. You can confirm that checking previous screenshot on Server FIle Path in debug page.

1 Like

Thank you Jarin,
But still there are difference for instance in you log properties you have
appender.file.type

and in the default log 4j2 it has
appender.rolling.type

So should I rename the entire log file instead of “rollling” to “file”??

1 Like

Hi @fugitiva
Just try it once and let me know whether it is working. Also try updating appender.file.name=file

1 Like

Dear Jarin,

Thank you for your help renamed fom rolling to file it seems to work

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.