LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 03-14-2005, 06:23 AM   #1
mikz
Member
 
Registered: Sep 2004
Distribution: Slackware current
Posts: 109

Rep: Reputation: 15
flush my server logs?


How do I flush my server logs?

File /dev/console
File /var/log/messages
File /var/log/syslog
File /var/log/debug
File /var/log/secure
File /var/log/cron
File /var/log/maillog
 
Old 03-14-2005, 06:34 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

If you want to 'zero' them:

Code:
cd /var/log
for THIS in "messages syslog debug secure cron maillog"
do
> $THIS
done
DO NOT flush /dev/console!!!

Don't know why you want to flush the logfiles, if they grow to big you could consider installing/configuring logrotate.

Hope this helps.
 
  


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
server logs varunbihani Linux - General 3 07-09-2005 02:10 AM
(vnc) x server logs out when i .... suhis Linux - Networking 0 08-21-2004 07:51 PM
notify when someone logs in on my server santiagosilva Linux - Networking 2 02-22-2004 03:28 PM
Server Mail Logs soulwatcher1974 Linux - Security 1 12-09-2003 12:35 AM
gateway server logs jayakrishnan Linux - Networking 1 09-06-2003 07:52 AM


All times are GMT -5. The time now is 06:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration