https:///weradocs/Linux_Logs.shtml Last update:

Wera Linux Configuration - Log Files

The latest version of the Linux program which starts the measurements and handles the communication from the Linux host to the Cl7 ( stm) uses the Linux system logger for archiving messages. The advantage is, that the messages of several previous data runs are kept available while the total size of the log-file is limited.

Please add the following lines to /etc/syslog.conf:

#
# all WERA stm - messages in one file
#
user.info                 -/home/wera/weralogs/cron.log

Please add the following lines to /etc/logrotate.d/syslog:

/home/wera/weralogs/cron.log {
    compress
    daily
    dateext
    maxage 365
    rotate 99
    missingok
    notifempty
    size +20M
    create 644 root root
    sharedscripts
    postrotate
        /etc/init.d/syslog reload
    endscript
}

Modify /etc/logrotate.conf:

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# uncomment these to switch compression to bzip2
#compresscmd /usr/bin/bzip2
#uncompresscmd /usr/bin/bunzip2

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own lastlog or wtmp -- we'll rotate them here
#/var/log/wtmp {
#    monthly
#    create 0664 root utmp
#    rotate 1
#}

BACK


Comments to:
schlick@dkrz.de (Thomas Schlick)
gurgel@ifm.uni-hamburg.de (Klaus-Werner Gurgel)