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
but logs nothing
Thanks in advance
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
but logs nothing
Thanks in advance
Make sure you uncomment the file root logger line in the file:
“rootLogger.appenderRef.file.ref=file”
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 ‘/’.
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
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.
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?
enable that line give me the error:
main ERROR Unable to locate appender “file” for logger config "root
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.
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”??
Hi @fugitiva
Just try it once and let me know whether it is working. Also try updating appender.file.name=file
Dear Jarin,
Thank you for your help renamed fom rolling to file it seems to work
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.