[CentOS] logrotation with date and time

umair shakil umairshakeel at gmail.com
Fri Oct 19 08:39:50 UTC 2007


Dear all Salam,

This is for all

  LOGFILE=/var/log/syslog
  FILE="$LOGFILE.`date +%F.%H:%M:%S`.log"

it will store the log in date+time format


Regards,

Umair Shakil
ETD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20071019/cbdd00b3/attachment.htm


More information about the CentOS mailing list