Re: [logs] wtmp, lastlog, etc files

From: Marcus J. Ranum (mjr@private)
Date: Sun Jun 06 2004 - 14:45:52 PDT

  • Next message: Greg Dotoli: "[logs] Syslog"

    SAWYER Charlotte M wrote:
    >Has anyone come up with a way to get these logs off the generating system to
    >a logging system?  I'd prefer to leave the logs on the server, but copy them
    >to my logging system.
    
    
    It's best to just have a cron job do a "last | logger" on a set interval.
    Otherwise you can copy the raw file and truncate it, then it's pretty
    easy to just read a struct utmp and print it to standard output with
    a 10-line C program.
    
    mjr.
    
    _______________________________________________
    LogAnalysis mailing list
    LogAnalysis@private
    http://lists.shmoo.com/mailman/listinfo/loganalysis
    



    This archive was generated by hypermail 2b30 : Sun Jun 06 2004 - 17:47:04 PDT