[CentOS] logrotation with date and time

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

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-0003.html>