LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2012, 08:50 AM   #1
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Rep: Reputation: 1
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 ~]$
 
Old 08-05-2012, 09:47 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,988

Rep: Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315
Quote:
Originally Posted by fachhoch@gmail.com View Post
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wifi not working in Eee PPC 1000HE (Debian Squeeze), but ethernet is working someshpr Linux - Laptop and Netbook 8 10-10-2011 03:59 PM
media problem with .avi --- audio only in vlc working rest amarock ,etc. not working fedex Linux - Newbie 1 12-22-2007 08:06 AM
SED - minor changes work - Larger doesn't (working and non working code included) Nimoy Programming 17 09-22-2007 04:34 PM
Fortemedia FM801 card not working under FC5 on Intel 845 but working with windows morningkiran Linux - Hardware 0 11-30-2006 07:57 AM
acpi nearly working IBM thinkpad R40e 2684HVG no Fn key working, throttling OK Emmanuel_uk Linux - Laptop and Netbook 2 05-31-2006 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration