[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14492718#comment-14492718
 ] 

ASF GitHub Bot commented on CLOUDSTACK-6885:
--------------------------------------------

GitHub user resmo opened a pull request:

    https://github.com/apache/cloudstack/pull/162

    CLOUDSTACK-6885: fix logrotate on VR to depend on size

    In 6ac06e5e5e3ceed4a3e3a86ea5f82ffb59c266f2 logrotate was changed to run 
hourly. Some logrotate configs still have set `daily` only which results in 
logs not rotated hourly. The only way to ensure the log is rotated is to use 
size.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/resmo/cloudstack 
fix/conntrackd-logrotate-daily

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/162.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #162
    
----
commit 3dbbc737d6977caf592e1a2261eec2943c4afb32
Author: Rene Moser <re...@apache.org>
Date:   2015-04-13T15:59:13Z

    CLOUDSTACK-6885: fix logrotate on VR to depend on size
    
    In 6ac06e5e5e3ceed4a3e3a86ea5f82ffb59c266f2 logrotate was changed to run 
hourly. Some logrotate configs still have set `daily` only which results in 
logs not rotated hourly. The only way to ensure the log is rotated is to use 
size.

----


> system-vm rsyslog logs rotation does not work properly
> ------------------------------------------------------
>
>                 Key: CLOUDSTACK-6885
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6885
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: SystemVM
>    Affects Versions: 4.3.0
>            Reporter: JF Vincent
>            Assignee: Abhinandan Prateek
>            Priority: Critical
>             Fix For: 4.6.0, 4.5.1
>
>
> rsyslog reload synthax is bad in the logrotate.d/rsyslog setting resulting in 
> potential FULL on /var/ and critical failures on the VR.
> See below please : 
> root@r-1346-SANDBOX:/var/log# more /etc/logrotate.d/rsyslog
> /var/log/syslog
> {
>         rotate 7
>         daily
>         missingok
>         notifempty
>         delaycompress
>         compress
>         postrotate
>                 invoke-rc.d rsyslog reload > /dev/null
>         endscript
> }
> /var/log/mail.info
> /var/log/mail.warn
> /var/log/mail.err
> /var/log/mail.log
> /var/log/daemon.log
> /var/log/kern.log
> /var/log/auth.log
> /var/log/user.log
> /var/log/lpr.log
> /var/log/cron.log
> /var/log/debug
> /var/log/messages
> {
>         rotate 10
>         daily
>         missingok
>         notifempty
>         compress
>         delaycompress
>         sharedscripts
>         postrotate
>                 invoke-rc.d rsyslog reload > /dev/null
>         endscript
> }
> root@r-1346-SANDBOX:/var/log# /etc/init.d/rsyslog reload
> Usage: /etc/init.d/rsyslog {start|stop|rotate|restart|force-reload|status}
> root@r-1346-SANDBOX:/var/log# /etc/init.d/rsyslog rotate
> [ ok ] Closing open files: rsyslogd.
> "reload" argument in the invoke-rc.d line shoud be replaced by "rotate" 
> argument.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to