Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-06-2006, 02:12 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 4

Rep: Reputation: 0
how i can delete log details

Hello to all !!!!

friends i m new to Linux. we have running Red Hat 8.0 Linux Server as a proxy server and using this we are sharing Internet Connection. we created 10-15 user and creating a log file under "\home\proxy\log\access.log" file. and using SQUID report generater we are generating reports (whatever they access on net.)

i just wana to know how we can clear log details.

i m very thankfule if any one tell me step by step proceduer to clear log details.

with regards.

Old 09-06-2006, 02:48 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
There are three easy ways to handle logs.

1) If you are the system administrator, and you have reviewed the logs and now want to empty the log file, use this command:
/dev/null > /home/proxy/log/access.log

2) Read the documentation on logrotate. Set up logrotate to rotate the logs after a specified number of days, of at a spedifiec file size. Logrotate will compress the file (make access.log.gz), and leave an empty access.log. Refiew the access.log.gz files when you have time, then delete.

3) Review the log. If there is nothing worth keeping, simply delete the log. Then immediately create a new file with this command:
touch /home/proxy/log/access.log
Old 09-06-2006, 03:29 PM   #3
LQ Newbie
Registered: Sep 2006
Posts: 4

Original Poster
Rep: Reputation: 0
hello bigrigdriver !!!!
thanks 4 reply....but when i applied 1st method command execute windows shows Permission denied where as i m login with Admin....y this ???

pls. tell me.....

Singh M
Old 09-06-2006, 03:52 PM   #4
LQ Newbie
Registered: Sep 2006
Posts: 4

Original Poster
Rep: Reputation: 0
thanks bigrigdriver !!!!

its working.....

lots of thankss

Singh M


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
How to Grab Print Job Details and LOG in AIX Sanju_yumi AIX 2 07-28-2014 06:54 PM
cannot delete or rotate messages log file dan451 Linux - Newbie 14 08-04-2006 04:13 PM
Delete Log Files raysr Mandriva 2 01-31-2006 11:15 AM
Can I delete all logs in /var/log? HURRY! Tenover Linux - General 4 01-03-2006 01:09 PM
log what files users create, delete etc. Goma_2 Linux - General 3 09-26-2003 06:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:57 PM.

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