LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 03: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, 03:48 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
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, 04: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, 04: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


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 07:54 PM
cannot delete or rotate messages log file dan451 Linux - Newbie 14 08-04-2006 05:13 PM
Delete Log Files raysr Mandriva 2 01-31-2006 12:15 PM
Can I delete all logs in /var/log? HURRY! Tenover Linux - General 4 01-03-2006 02:09 PM
log what files users create, delete etc. Goma_2 Linux - General 3 09-26-2003 07:12 PM


All times are GMT -5. The time now is 07:35 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration