hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Logrotate assistance
Reply

Forum Jump

Logrotate assistance

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-03-2001, 07:02 PM
DaveC# DaveC# is offline
Web Hosting Guru
 
Join Date: Oct 2000
Posts: 258
My My sometime my stupidity even amazes me

Anyways heres my problem

Redhat/Apache

https logs are stored in /var/log/httpd in the format domain.dom.access_log

Problem: Logs are not rotating using logrotate:

Heres my logrotate.conf

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

# keep 4 weeks worth of backlogs
rotate 2

# send errors to root
errors root

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

# 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 lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}

/var/log/lastlog {
monthly
rotate 1
}

# system-specific logs may be configured here
and heres my httpd logrotate config from /etc/logrotate.d/httpd

Quote:
compress

/var/log/httpd/error_log {
postrotate
/usr/bin/killall -HUP httpd
endscript
}

/var/log/httpd/access_log {
postrotate
/usr/bin/killall -HUP httpd
endscript
}

/var/log/httpd/transfer_log {
postrotate
/usr/bin/killall -HUP httpd
endscript
}

/var/log/httpd/*.error_log {
postrotate
/usr/bin/killall -HUP httpd
endscript
}

/var/log/httpd/*.access_log {
postrotate
/usr/bin/killall -HUP httpd
endscript
}
Why is this not working anymore? Any ideas guys?

Sincere thanks in advance



Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?