08-21-2020 03:28 AM
Hi All,
I am unable to Find Audit Logs or Audit Trail though my audit.enabled=true. If someone could guide me how can i view audit trail for my application. Also path where can i get this. I have gone through documentation but unable to view logs as mentioned in it.
Thanks and Regards,
Piyush.
08-24-2020 11:40 AM
Hi @piyush48
Have you looked for audit entries in alfresco.log?
HTH
09-08-2020 08:28 AM
Hi @EddieMay ,
I am using SDK 4.1 Enterprise Edition and wasnt able to get alfresco.log file. I also tried to use log4j.appender.File.File=Filename.log but wasnt able to find Filename.log file anywhere in my system.
Thanks and Regards,
Piyush
09-09-2020 07:09 AM
Hi @piyush48
I think your log settings are not correct. "Filename.log" won't exist - "Filename" is a placeholder for the real log file on your system. Try something like:
log4j.appender.File.File=/var/log/alfresco/alfresco.log
where the "/var/log/alfresco/" is the path to where you aflresco log file is.
HTH
09-09-2020 09:18 AM
Hi @EddieMay ,
Thanks for the help but it didnt generate audit log anywhere. I have a project with name alfresco.contentservice and in that folder ankert-acs and in that all the folders like platform,share etc folders are there. I want logs file inside ankert-acs. Like we do use to get in community edition. I dont know why it is not generating logs though audit is enabled. I have given my configuration of log4j.properties file above.
Please guide me out.
Thanks,
Piyush.
09-09-2020 06:41 AM
Hi @EddieMay ,
i have this configuration in my log4j.properties file on path src\main\docker path but still it not generating log file. I need to add something to it ?
log4j.appender.Console=org.apache.log4j.ConsoleAppender log4j.appender.Console.layout=org.apache.log4j.PatternLayout # use log4j NDC to replace %x with tenant domain / username log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n #log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n # File appender definition # log4j.appender.File=org.apache.log4j.DailyRollingFileAppender log4j.appender.File.File=share.log log4j.appender.File.Append=true log4j.appender.File.DatePattern='.'yyyy-MM-dd log4j.appender.File.layout=org.apache.log4j.PatternLayout log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
Please do guide me out.
Thanks and Regards,
Piyush
Explore our Alfresco products with the links below. Use labels to filter content by product module.