Syslog rotation (howto customize)

From: Rafael Angarita (rangarita@telcel.net.ve)
Date: Wed Oct 02 2002 - 16:27:24 EDT


    Hi,

    I have 2 questions about syslog:

1.-
    Is it possible to customize the logs rotation when you are using a
 central repository log server?
    I have an application using syslog to forwards its logs to our
logs central server and I want to rotate only the log associate to this
application with a frecuency that is not the the same that the others
 logs collected in this server.
    man syslog.conf says nothing about customize the frequency of the
logs rotation.
    I know the syslog rotation is done using the crontab job
/usr/lib/newsyslog but it rotates all the logs, if I change the
frequency of this crontab all the logs will be rotated but that's not
what I want (I want to rotate logs for only one application).

    Is there a way to rotate only the log I want?
    I think "cp mylog newlog; cp /dev/null mylog" is not a good idea,
 due to corruption possibility.

2.-
    By the way, is syslog reliable enough? (it's implemented over UDP,
but the man pages says nothing about the reliability when forwarding
to a remote server), I really care each of the application logs line...

    Thanks in advance,

-- 
  Rafael Angarita
System Administrator
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:01 EDT