LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-16-2012, 11:00 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
logrotate log is not update


In my redhat server , I use logrotate to check and send log .

I got the below log everyday , I found that there are many telnet , ftp connection , I wonder if the log is not update , the data in the log seems is old data , if yes , can advise how can I clear the old data ?


--------------------- Connections (secure-log) Begin ------------------------


Connections:
Service auth:
127.0.0.1: 111 Time(s)

Service ftp:

Service telnet:
10.5.1.15: 10 Time(s)
192.168.0.2: 111 Time(s)
"
"
"
"
"
"
"
"
"
"
Service shell:


---------------------- Connections (secure-log) End -------------------------
 
Old 07-17-2012, 01:35 AM   #2
shukmm
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Rep: Reputation: Disabled
Hi ust,

As I understood, that the data in the logs are seems to be old data and you want to remove the old data from the logs.
For that you can run the command "cat /dev/null > logfilename(eg: secure,messages).
 
  


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
logrotate httpd log files linux_bud Linux - Newbie 3 01-11-2010 05:13 AM
logrotate log files rashmeepawar Linux - Server 1 10-21-2009 05:14 AM
logrotate of Asterisk log at midnight john lee Linux - Newbie 2 06-27-2008 02:38 AM
logrotate and /var/log/btmp msteiner Linux - General 1 06-14-2007 08:31 PM
Log Rotation using Logrotate keysorsoze Linux - General 4 04-13-2007 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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