Advertisement
Guest User

logrotate -d

a guest
Aug 17th, 2011
1,649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.62 KB | None | 0 0
  1. $:/var/log# /usr/sbin/logrotate -d /etc/logrotate.conf
  2. reading config file /etc/logrotate.conf
  3. including /etc/logrotate.d
  4. reading config file apache2
  5. reading config info for /var/log/apache2/*.log
  6. reading config file apt
  7. reading config info for /var/log/apt/term.log
  8. reading config info for /var/log/apt/history.log
  9. reading config file aptitude
  10. reading config info for /var/log/aptitude
  11. reading config file clamav-daemon
  12. reading config info for /var/log/clamav/clamav.log
  13. reading config file clamav-freshclam
  14. reading config info for /var/log/clamav/freshclam.log
  15. reading config file dpkg
  16. reading config info for /var/log/dpkg.log
  17. reading config info for /var/log/alternatives.log
  18. reading config file exim4-base
  19. reading config info for /var/log/exim4/mainlog /var/log/exim4/rejectlog
  20. reading config file exim4-paniclog
  21. reading config info for /var/log/exim4/paniclog
  22. reading config file fail2ban
  23. reading config info for /var/log/fail2ban.log
  24. reading config file mysql-server
  25. reading config info for /var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log
  26. reading config file razor
  27. reading config info for /var/log/razor-agent.log
  28. reading config file rkhunter
  29. reading config info for /var/log/rkhunter.log
  30. reading config file rsyslog
  31. reading config info for /var/log/syslog
  32.  
  33. reading config info for /var/log/mail.info
  34. /var/log/mail.warn
  35. /var/log/mail.err
  36. /var/log/mail.log
  37. /var/log/daemon.log
  38. /var/log/kern.log
  39. /var/log/auth.log
  40. /var/log/user.log
  41. /var/log/lpr.log
  42. /var/log/cron.log
  43. /var/log/debug
  44. /var/log/messages
  45.  
  46. reading config file shorewall
  47. reading config info for /var/log/shorewall-init.log
  48. reading config file ulogd
  49. reading config info for /var/log/ulog/*.log
  50. reading config file vsftpd
  51. reading config info for /var/log/vsftpd.log
  52.  
  53. reading config info for /var/log/wtmp
  54. reading config info for /var/log/btmp
  55.  
  56. Handling 21 logs
  57.  
  58. rotating pattern: /var/log/apache2/*.log  weekly (4 rotations)
  59. empty log files are not rotated, old logs are removed
  60. considering log /var/log/apache2/access.log
  61.   log does not need rotating
  62. considering log /var/log/apache2/error.log
  63.   log does not need rotating
  64. considering log /var/log/apache2/other_vhosts_access.log
  65.   log does not need rotating
  66. not running postrotate script, since no logs were rotated
  67.  
  68. rotating pattern: /var/log/apt/term.log  monthly (12 rotations)
  69. empty log files are not rotated, old logs are removed
  70. considering log /var/log/apt/term.log
  71.   log does not need rotating
  72.  
  73. rotating pattern: /var/log/apt/history.log  monthly (12 rotations)
  74. empty log files are not rotated, old logs are removed
  75. considering log /var/log/apt/history.log
  76.   log does not need rotating
  77.  
  78. rotating pattern: /var/log/aptitude  monthly (6 rotations)
  79. empty log files are not rotated, old logs are removed
  80. considering log /var/log/aptitude
  81.   log does not need rotating
  82.  
  83. rotating pattern: /var/log/clamav/clamav.log  weekly (12 rotations)
  84. empty log files are rotated, old logs are removed
  85. considering log /var/log/clamav/clamav.log
  86.   log does not need rotating
  87. not running postrotate script, since no logs were rotated
  88.  
  89. rotating pattern: /var/log/clamav/freshclam.log  weekly (12 rotations)
  90. empty log files are rotated, old logs are removed
  91. considering log /var/log/clamav/freshclam.log
  92.   log does not need rotating
  93. not running postrotate script, since no logs were rotated
  94.  
  95. rotating pattern: /var/log/dpkg.log  monthly (12 rotations)
  96. empty log files are not rotated, old logs are removed
  97. considering log /var/log/dpkg.log
  98.   log does not need rotating
  99.  
  100. rotating pattern: /var/log/alternatives.log  monthly (12 rotations)
  101. empty log files are not rotated, old logs are removed
  102. considering log /var/log/alternatives.log
  103.   log does not need rotating
  104.  
  105. rotating pattern: /var/log/exim4/mainlog /var/log/exim4/rejectlog  after 1 days (10 rotations)
  106. empty log files are not rotated, old logs are removed
  107. considering log /var/log/exim4/mainlog
  108.   log does not need rotating
  109. considering log /var/log/exim4/rejectlog
  110.   log /var/log/exim4/rejectlog does not exist -- skipping
  111.  
  112. rotating pattern: /var/log/exim4/paniclog  10485760 bytes (10 rotations)
  113. empty log files are not rotated, old logs are removed
  114. considering log /var/log/exim4/paniclog
  115.   log /var/log/exim4/paniclog does not exist -- skipping
  116.  
  117. rotating pattern: /var/log/fail2ban.log  weekly (4 rotations)
  118. empty log files are rotated, old logs are removed
  119. considering log /var/log/fail2ban.log
  120.   log does not need rotating
  121. not running postrotate script, since no logs were rotated
  122.  
  123. rotating pattern: /var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log  after 1 days (7 rotations)
  124. empty log files are rotated, old logs are removed
  125. considering log /var/log/mysql.log
  126.   log needs rotating
  127. considering log /var/log/mysql/mysql.log
  128.   log needs rotating
  129. considering log /var/log/mysql/mysql-slow.log
  130.   log /var/log/mysql/mysql-slow.log does not exist -- skipping
  131. rotating log /var/log/mysql.log, log->rotateCount is 7
  132. dateext suffix '-20110817'
  133. glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
  134. renaming /var/log/mysql.log.7.gz to /var/log/mysql.log.8.gz (rotatecount 7, logstart 1, i 7),
  135. renaming /var/log/mysql.log.6.gz to /var/log/mysql.log.7.gz (rotatecount 7, logstart 1, i 6),
  136. renaming /var/log/mysql.log.5.gz to /var/log/mysql.log.6.gz (rotatecount 7, logstart 1, i 5),
  137. renaming /var/log/mysql.log.4.gz to /var/log/mysql.log.5.gz (rotatecount 7, logstart 1, i 4),
  138. renaming /var/log/mysql.log.3.gz to /var/log/mysql.log.4.gz (rotatecount 7, logstart 1, i 3),
  139. renaming /var/log/mysql.log.2.gz to /var/log/mysql.log.3.gz (rotatecount 7, logstart 1, i 2),
  140. renaming /var/log/mysql.log.1.gz to /var/log/mysql.log.2.gz (rotatecount 7, logstart 1, i 1),
  141. renaming /var/log/mysql.log.0.gz to /var/log/mysql.log.1.gz (rotatecount 7, logstart 1, i 0),
  142. rotating log /var/log/mysql/mysql.log, log->rotateCount is 7
  143. dateext suffix '-20110817'
  144. glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
  145. renaming /var/log/mysql/mysql.log.7.gz to /var/log/mysql/mysql.log.8.gz (rotatecount 7, logstart 1, i 7),
  146. renaming /var/log/mysql/mysql.log.6.gz to /var/log/mysql/mysql.log.7.gz (rotatecount 7, logstart 1, i 6),
  147. renaming /var/log/mysql/mysql.log.5.gz to /var/log/mysql/mysql.log.6.gz (rotatecount 7, logstart 1, i 5),
  148. renaming /var/log/mysql/mysql.log.4.gz to /var/log/mysql/mysql.log.5.gz (rotatecount 7, logstart 1, i 4),
  149. renaming /var/log/mysql/mysql.log.3.gz to /var/log/mysql/mysql.log.4.gz (rotatecount 7, logstart 1, i 3),
  150. renaming /var/log/mysql/mysql.log.2.gz to /var/log/mysql/mysql.log.3.gz (rotatecount 7, logstart 1, i 2),
  151. renaming /var/log/mysql/mysql.log.1.gz to /var/log/mysql/mysql.log.2.gz (rotatecount 7, logstart 1, i 1),
  152. renaming /var/log/mysql/mysql.log.0.gz to /var/log/mysql/mysql.log.1.gz (rotatecount 7, logstart 1, i 0),
  153. renaming /var/log/mysql.log to /var/log/mysql.log.1
  154. creating new /var/log/mysql.log mode = 0640 uid = 105 gid = 4
  155. renaming /var/log/mysql/mysql.log to /var/log/mysql/mysql.log.1
  156. creating new /var/log/mysql/mysql.log mode = 0640 uid = 105 gid = 4
  157. running postrotate script
  158. running script (multiple) with arg /var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log : "
  159.         test -x /usr/bin/mysqladmin || exit 0
  160.  
  161.         # If this fails, check debian.conf!
  162.         MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
  163.         if [ -z "`$MYADMIN ping 2>/dev/null`" ]; then
  164.           # Really no mysqld or rather a missing debian-sys-maint user?
  165.           # If this occurs and is not a error please report a bug.
  166.           if ps cax | grep -q mysqld; then
  167.             exit 1
  168.           fi
  169.         else
  170.           $MYADMIN flush-logs
  171.         fi
  172. "
  173. compressing log with: /bin/gzip
  174. removing old log /var/log/mysql.log.8.gz
  175. compressing log with: /bin/gzip
  176. removing old log /var/log/mysql/mysql.log.8.gz
  177.  
  178. rotating pattern: /var/log/razor-agent.log  weekly (3 rotations)
  179. empty log files are not rotated, old logs are removed
  180. considering log /var/log/razor-agent.log
  181.   log /var/log/razor-agent.log does not exist -- skipping
  182.  
  183. rotating pattern: /var/log/rkhunter.log  weekly (4 rotations)
  184. empty log files are not rotated, old logs are removed
  185. considering log /var/log/rkhunter.log
  186.   log does not need rotating
  187.  
  188. rotating pattern: /var/log/syslog
  189.  after 1 days (7 rotations)
  190. empty log files are not rotated, old logs are removed
  191. considering log /var/log/syslog
  192.   log needs rotating
  193. rotating log /var/log/syslog, log->rotateCount is 7
  194. dateext suffix '-20110817'
  195. glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
  196. compressing log with: /bin/gzip
  197. renaming /var/log/syslog.7.gz to /var/log/syslog.8.gz (rotatecount 7, logstart 1, i 7),
  198. renaming /var/log/syslog.6.gz to /var/log/syslog.7.gz (rotatecount 7, logstart 1, i 6),
  199. renaming /var/log/syslog.5.gz to /var/log/syslog.6.gz (rotatecount 7, logstart 1, i 5),
  200. renaming /var/log/syslog.4.gz to /var/log/syslog.5.gz (rotatecount 7, logstart 1, i 4),
  201. renaming /var/log/syslog.3.gz to /var/log/syslog.4.gz (rotatecount 7, logstart 1, i 3),
  202. renaming /var/log/syslog.2.gz to /var/log/syslog.3.gz (rotatecount 7, logstart 1, i 2),
  203. renaming /var/log/syslog.1.gz to /var/log/syslog.2.gz (rotatecount 7, logstart 1, i 1),
  204. renaming /var/log/syslog.0.gz to /var/log/syslog.1.gz (rotatecount 7, logstart 1, i 0),
  205. renaming /var/log/syslog to /var/log/syslog.1
  206. creating new /var/log/syslog mode = 0640 uid = 0 gid = 4
  207. running postrotate script
  208. running script (multiple) with arg /var/log/syslog
  209. : "
  210.         invoke-rc.d rsyslog reload > /dev/null
  211. "
  212. removing old log /var/log/syslog.8.gz
  213.  
  214. rotating pattern: /var/log/mail.info
  215. /var/log/mail.warn
  216. /var/log/mail.err
  217. /var/log/mail.log
  218. /var/log/daemon.log
  219. /var/log/kern.log
  220. /var/log/auth.log
  221. /var/log/user.log
  222. /var/log/lpr.log
  223. /var/log/cron.log
  224. /var/log/debug
  225. /var/log/messages
  226.  weekly (4 rotations)
  227. empty log files are not rotated, old logs are removed
  228. considering log /var/log/mail.info
  229.   log does not need rotating
  230. considering log /var/log/mail.warn
  231.   log does not need rotating
  232. considering log /var/log/mail.err
  233.   log does not need rotating
  234. considering log /var/log/mail.log
  235.   log does not need rotating
  236. considering log /var/log/daemon.log
  237.   log does not need rotating
  238. considering log /var/log/kern.log
  239.   log does not need rotating
  240. considering log /var/log/auth.log
  241.   log does not need rotating
  242. considering log /var/log/user.log
  243.   log does not need rotating
  244. considering log /var/log/lpr.log
  245.   log does not need rotating
  246. considering log /var/log/cron.log
  247.   log /var/log/cron.log does not exist -- skipping
  248. considering log /var/log/debug
  249.   log does not need rotating
  250. considering log /var/log/messages
  251.   log does not need rotating
  252. not running postrotate script, since no logs were rotated
  253.  
  254. rotating pattern: /var/log/shorewall-init.log  weekly (4 rotations)
  255. empty log files are rotated, old logs are removed
  256. considering log /var/log/shorewall-init.log
  257.   log does not need rotating
  258.  
  259. rotating pattern: /var/log/ulog/*.log  weekly (4 rotations)
  260. empty log files are rotated, old logs are removed
  261. considering log /var/log/ulog/syslogemu.log
  262.   log does not need rotating
  263. considering log /var/log/ulog/ulogd.log
  264.   log does not need rotating
  265. not running postrotate script, since no logs were rotated
  266.  
  267. rotating pattern: /var/log/vsftpd.log
  268.  weekly (4 rotations)
  269. empty log files are not rotated, old logs are removed
  270. considering log /var/log/vsftpd.log
  271.   log does not need rotating
  272.  
  273. rotating pattern: /var/log/wtmp  monthly (1 rotations)
  274. empty log files are rotated, old logs are removed
  275. considering log /var/log/wtmp
  276.   log does not need rotating
  277.  
  278. rotating pattern: /var/log/btmp  monthly (1 rotations)
  279. empty log files are rotated, old logs are removed
  280. considering log /var/log/btmp
  281.   log does not need rotating
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement