LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-06-2006, 02:12 PM   #1
fantoos001
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.

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

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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
fantoos001
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
fantoos001
LQ Newbie
 
Registered: Sep 2006
Posts: 4

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

its working.....

lots of thankss

Singh M
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:10 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