LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   is my logration working? (https://www.linuxquestions.org/questions/linux-newbie-8/is-my-logration-working-4175420458/)

fachhoch@gmail.com 08-05-2012 08:50 AM

is my logration working?
 
I configured log rotation for tomcat log file catalina.out
I am not sure if this is working
here is the output from shell

Code:


[ec2-user@ip-10-118-177-84 ~]$ ls -l  /opt/tomcat/logs/
total 760
-rw-r--r-- 1 tomcat tomcat  2148 Jul 29 21:48 catalina.2012-07-29.log
-rw-r--r-- 1 tomcat tomcat    225 Jul 30 15:00 catalina.2012-07-30.log
-rw-r--r-- 1 tomcat tomcat    112 Jul 31 09:52 catalina.2012-07-31.log
-rw-r--r-- 1 tomcat tomcat    222 Aug  1 13:35 catalina.2012-08-01.log
-rw-r--r-- 1 tomcat tomcat    222 Aug  2 15:05 catalina.2012-08-02.log
-rw-r--r-- 1 tomcat tomcat 741878 Aug  4 14:30 catalina.out
-rw-r--r-- 1 tomcat tomcat      0 Jul 29 21:47 host-manager.2012-07-29.log
-rw-r--r-- 1 tomcat tomcat    125 Jul 29 21:47 localhost.2012-07-29.log
-rw-r--r-- 1 tomcat tomcat    106 Jul 30 09:00 localhost.2012-07-30.log
-rw-r--r-- 1 tomcat tomcat      0 Jul 29 21:47 manager.2012-07-29.log
[ec2-user@ip-10-118-177-84 ~]$


TB0ne 08-05-2012 09:47 AM

Quote:

Originally Posted by fachhoch@gmail.com (Post 4746389)
I configured log rotation for tomcat log file catalina.out
I am not sure if this is working
here is the output from shell

Code:


[ec2-user@ip-10-118-177-84 ~]$ ls -l  /opt/tomcat/logs/
total 760
-rw-r--r-- 1 tomcat tomcat  2148 Jul 29 21:48 catalina.2012-07-29.log
-rw-r--r-- 1 tomcat tomcat    225 Jul 30 15:00 catalina.2012-07-30.log
-rw-r--r-- 1 tomcat tomcat    112 Jul 31 09:52 catalina.2012-07-31.log
-rw-r--r-- 1 tomcat tomcat    222 Aug  1 13:35 catalina.2012-08-01.log
-rw-r--r-- 1 tomcat tomcat    222 Aug  2 15:05 catalina.2012-08-02.log
-rw-r--r-- 1 tomcat tomcat 741878 Aug  4 14:30 catalina.out
-rw-r--r-- 1 tomcat tomcat      0 Jul 29 21:47 host-manager.2012-07-29.log
-rw-r--r-- 1 tomcat tomcat    125 Jul 29 21:47 localhost.2012-07-29.log
-rw-r--r-- 1 tomcat tomcat    106 Jul 30 09:00 localhost.2012-07-30.log
-rw-r--r-- 1 tomcat tomcat      0 Jul 29 21:47 manager.2012-07-29.log
[ec2-user@ip-10-118-177-84 ~]$


What makes you think it's not working? And how are we supposed to know, since you don't tell us what the logrotate rules you set up are, nor how much traffic/data you're expecting to see?

Looks like things are rotating, don't they? Different file for every day, right? What are you expecting?


All times are GMT -5. The time now is 02:54 AM.