Force newsyslog to rotate from custon script

From: JJB (Barbish3_at_adelphia.net)
Date: 05/11/04

  • Next message: Peter Ulrich Kruppa: "Re: Voice Recording HowTo???"
    To: "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG>
    Date: Tue, 11 May 2004 14:05:00 -0400
    
    

    Problem description: My ipfilter log is rotated using
    newsyslog.conf. The file is rotated on file size option. I have
    custom script that reads the log and builds email containing list of
    abusive source IP address. This custom script is included in the
    daily management report process. Problem is that on days that there
    is a lot of blocked traffic the log may rotate multiple times and my
    daily management report script only runs against the current active
    log.

    Is their some way to keep the log defined in newsyslog.conf without
    any rotate option and add something to my custom script to tell
    newsyslog to rotate the log after the script has processed the
    current active log file?

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Peter Ulrich Kruppa: "Re: Voice Recording HowTo???"