Article 5E6JQ time

time

by
linuly
from LinuxQuestions.org on (#5E6JQ)
hi,
Code:ls -l /var/log/messages*
-rw-------. 1 root root 176934 Feb 15 03:55 /var/log/messages
-rw-------. 1 root root 954937 Jan 31 04:20 /var/log/messages-20210131
-rw-------. 1 root root 723057 Feb 8 10:12 /var/log/messages-20210208
-rw-------. 1 root root 2303509 Feb 14 04:23 /var/log/messages-20210214
-rw-r--r--. 1 root root 16 Jan 29 05:02 /var/log/messages.offset
[root@samui ~]# ls -l /var/log/secure*
-rw-------. 1 root root 4067 Feb 15 03:55 /var/log/secure
-rw-------. 1 root root 9543 Jan 31 04:00 /var/log/secure-20210131
-rw-------. 1 root root 7428 Feb 8 08:26 /var/log/secure-20210208
-rw-------. 1 root root 26946 Feb 13 05:50 /var/log/secure-20210214
[root@samui ~]# ls -l /var/log/maillog*
-rw-------. 1 root root 190 Feb 14 13:11 /var/log/maillog
-rw-------. 1 root root 5407 Jan 31 03:54 /var/log/maillog-20210131
-rw-------. 1 root root 1523 Feb 8 08:26 /var/log/maillog-20210208
-rw-------. 1 root root 3040 Feb 13 05:49 /var/log/maillog-20210214Those log files messages*,secure*,maillog* start on 31 jan.
why secure and maillog rotate on 13 feb and messages on 14 feb?
more /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

# use date as a suffix of the rotated file
dateext

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

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

# no packages own wtmp and btmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
minsize 1M
rotate 1
}

/var/log/btmp {
missingok
monthly
create 0600 root utmp
rotate 1
}

# system-specific logs may be also be configured here.latest?d=yIl2AUoC8zA latest?i=JSIA96pX4Mk:ATR4QKkg0oY:F7zBnMy latest?i=JSIA96pX4Mk:ATR4QKkg0oY:V_sGLiP latest?d=qj6IDK7rITs latest?i=JSIA96pX4Mk:ATR4QKkg0oY:gIN9vFwJSIA96pX4Mk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments