Truncating the Nagios logs

Matthew.Quinney at hollandandholland.com Matthew.Quinney at hollandandholland.com
Thu Nov 13 09:49:00 CET 2003


Eric & Lane,

Thanks for your help. I thought I might be able to apply regular Unix 
commands to the file (ie blank it and create a new one). Is there such a 
command I could use to shorten the log file, ie remove the top 1000 lines 
for example, or entries earlier than dd/mm/yy ?

Many thanks

Matthew






BOLLENGIER Eric <ebollengier at sigma.fr> 
Sent by: nagios-users-admin at lists.sourceforge.net
13/11/2003 07:52

To
Matthew.Quinney at hollandandholland.com
cc
nagios-users at lists.sourceforge.net
Subject
Re: [Nagios-users] Truncating the Nagios logs






Hi,

Yes you can, if you doent use it. You can do something like
[root at plume nagios]# > serviceperf.log

or
cat > serviceperf.log
^D

Hope it's help
Regards


On Wed, 2003-11-12 at 19:36, Matthew.Quinney at hollandandholland.com
wrote:
> Hello all !!
> 
> Is it possible to truncate the serviceperf.log ? Our is almost 2GB. I
> have looked through the docs and the FAQ but to no avail.
> 
> Any help would be great,
> 
> Matthew



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when 
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

_____________________________________________________________________
This e-mail has been scanned for viruses by the uuNet Internet Managed 
Scanning Service - powered by MessageLabs.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031113/c6f04af7/attachment.html>


More information about the Users mailing list