Not Able to Find Audit Trail

cancel
Showing results for 
Search instead for 
Did you mean: 
piyush48
Established Member

Not Able to Find Audit Trail

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.

5 Replies
EddieMay
Alfresco Employee

Re: Not Able to Find Audit Trail

Hi @piyush48 

Have you looked for audit entries in alfresco.log?

HTH

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
piyush48
Established Member

Re: Not Able to Find Audit Trail

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

piyush48
Established Member

Re: Not Able to Find Audit Trail

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 

EddieMay
Alfresco Employee

Re: Not Able to Find Audit Trail

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

 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
piyush48
Established Member

Re: Not Able to Find Audit Trail

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.