LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 06-03-2009, 02:50 AM   #1
cytchiu
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
logrotate question


My logrotate.conf as follows:

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 26

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}

# system-specific logs may be also be configured here.


And in /etc/logrotate.d, I have created a file eform, details as follows:

/var/log/eform.log {
missingok
notifempty
copytruncate
size=4096k
rotate 16
compress
}


I found that on every Thu 4:00, the server will generate a eform.log.gz. My question is, can I change the rotating time? E.g. I want to rotate the log on every Sun instead of Thu. If yes, how can I do that?

Thank you.
 
Old 06-03-2009, 06:13 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Look where logrotate gets run. I'd start with the system-wide crontab.
 
Old 06-03-2009, 07:54 AM   #3
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
/etc/crontab on RHEL
 
  


Reply



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
Question about logrotate h725 Linux - Server 5 03-17-2009 03:01 AM
logrotate question rimvydazas Linux - Software 9 12-21-2007 10:39 AM
logrotate question sunman Slackware 3 02-21-2006 01:40 PM
a question about logrotate? hueofwind Linux - Newbie 3 11-08-2005 08:08 PM
logrotate question glock19 Linux - Networking 1 05-12-2003 09:08 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:54 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
Open Source Consulting | Domain Registration