Logrotate 附加檔名帶有“.1”

Logrotate 附加檔名帶有“.1”

由於某些原因,當 logrotate 運行時,我們的 tomcatlog 會附加 .1。例如:檔案「tcl-2013-08-16.0.log」變成「tcl-2013-08-16.0.1.log」。我正在努力尋找什麼設定在文件名的“.log”部分之前添加“.1”。以下是 /etc/logrotate.d/ 中的設定檔的副本:

extension .log
rotate 52
daily
nocreate
nodateext
missingok
notifempty
compress
delaycompress

以下是/etc/logrotate.conf中的設定:

weekly
rotate 52  
create  
dateext  
compress  
delaycompress  
include /etc/logrotate.d

我在這裡缺少什麼?

謝謝,內斯

相關內容