Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Closed Thread
  Search this Thread
Old 08-19-2004, 09:00 AM   #1
LQ Newbie
Registered: Jul 2004
Posts: 22

Rep: Reputation: 15
How to reset access log files safely?

Hello there,

I am hoping someone can help!

I have a client with a very busy, traffic-heavy site, for whom we keep the logs. Previously the logs were configured to rotate and compress each week; somehow when we switched to a new drive this functionality got obliterated. The current raw log file is enormous.

I tried doing the log rotation with another client, and it worked fine. The existing large access_log file was zipped up into two .gz files and the access_log file was reset to 0.

However with this other client I was not able to get the same results. This is the syntax I'm using:

/home/clientabc/logs/access_log {
/sbin/killall -HUP httpd

I wanted the files to zip up when they reach 1000000b in size and for the raw log file to reset at that point. When I ran this command, it didn't work. I was expecting the current raw log which is a whopping 200,000,000 b in size to be zipped up into smaller files.

What am I missing to get this to execute properly?

Last edited by sdebiasio; 08-19-2004 at 02:55 PM.
Old 08-19-2004, 02:55 PM   #2
LQ Newbie
Registered: Jul 2004
Posts: 22

Original Poster
Rep: Reputation: 15
Anyone? anyone?
Old 08-19-2004, 03:50 PM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Firstly, you already have this thread going.
Secondly, you bumped it within 5 hours, the
forum rules say 24.


Closed Thread

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
sendmail -- cpu load high & log huge !! ranger_nemo Linux - Software 2 06-08-2004 01:06 PM
huge log files - how do i shortn them? rosscopeeko Linux - General 2 03-30-2004 10:59 AM
Huge Firewall Log Files seanfitz Linux - Networking 1 01-29-2004 11:23 AM
Huge log files altor Linux - Newbie 4 09-03-2003 09:40 AM
HUGE sendmail log magyartoth Linux - General 2 02-19-2002 09:00 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:09 AM.

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