Tomcat Catalina, today date on filename


#1 Pierrick.Prost

Hi everyboy,

I have a log rotation folder on catalina application with a filename based on date like that "catalina.2016-04-15.log". Catalina create a log file with the date of the day, only if he need to write log (not automatically a file per day).

Some one has a exemple for configure NX log ?

 

Thanks in advance !

 

 

#2 adm Nxlog ✓
#1 Pierrick.Prost
Hi everyboy, I have a log rotation folder on catalina application with a filename based on date like that "catalina.2016-04-15.log". Catalina create a log file with the date of the day, only if he need to write log (not automatically a file per day). Some one has a exemple for configure NX log ?   Thanks in advance !    

You should be able to use a wildcard to have im_file pick up the tomcat logs like this:

File '/var/log/tomcat/catalina.*.log'