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.
Hi @piyush48
Have you looked for audit entries in alfresco.log?
HTH
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
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
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
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.