Re: [QUERY] CLOUDSTACK-6885 Rsyslog not rotating

2014-07-06 Thread Sonal Ojha
Can someone take a look at the recommendation updated in the jira
https://issues.apache.org/jira/browse/CLOUDSTACK-6885.

Would like to know thoughts on the same.

-Sonal


On Tue, Jul 1, 2014 at 3:33 PM, Sonal Ojha  wrote:

> Forgot to mention , the default size defined in the logrotate.conf file is
> 50M which is applicable to all the log rotate configuration files.
>
>
>
> On Tue, Jul 1, 2014 at 3:23 PM, Sonal Ojha 
> wrote:
>
>> The configuration for the rsyslog could be modified to add a size
>> parameter to rotate the file if a specific size is reached. Modifying the
>> rsyslog configuration under /etc/logrotate.d/ would do the job. Here is
>> what I tried
>>
>> /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
>> size 1k
>> missingok
>> notifempty
>> compress
>> delaycompress
>> sharedscripts
>> postrotate
>> invoke-rc.d rsyslog force-reload > /dev/null
>> endscript
>> }
>>
>>
>> On Mon, Jun 30, 2014 at 4:12 PM, Sonal Ojha 
>> wrote:
>>
>>> Hello,
>>>
>>> I am seeing similar issue of rsyslog not rotating on the systemvm.
>>>
>>> I tried replacing the reload with rotate in the invoke-rc.d, but it
>>> didnt seem to work. The only way I could make it work was by the following
>>> command
>>>
>>> logrotate -f /etc/logrotate.d/rsyslog
>>>
>>> Can you help to know if modifying the invoke-rc.d worked as expected.
>>>
>>> --
>>>
>>> *Thanks and Regards,*
>>>
>>> *Sonal Ojha ▪ Sr.Engineer - Product Development **▪ **Sungard
>>> Availability Services, India*
>>>
>>> 2nd Floor, Wing 4, Cluster D, MIDC Kharadi Knowledge Park, Pune - 411
>>> 014 ▪ Office: 267-234-9014 ▪ Mobile: +91 9922412645 ▪
>>> sonal.o...@sungardas.com ▪ www.sungardas. 
>>> *in*
>>>
>>> *[image: Logo]* 
>>> *[image: cid:image019.png@01CF48EC.6617C7F0]*
>>>  *[image:
>>> cid:image020.png@01CF48EC.6617C7F0]*
>>>  *[image:
>>> cid:image021.png@01CF48EC.6617C7F0]*
>>>  *[image:
>>> cid:image022.png@01CF48EC.6617C7F0]*
>>>  *[image:
>>> cid:image023.png@01CF48EC.6617C7F0]*
>>>  *[image:
>>> cid:image024.png@01CF48EC.6617C7F0]* 
>>> *CONFIDENTIALITY:*  This e-mail (including any attachments) may contain
>>> confidential, proprietary and privileged information, and unauthorized
>>> disclosure or use is prohibited.  If you received this e-mail in error,
>>> please notify the sender and delete this e-mail from your system.
>>>
>>
>>
>>
>> --
>>
>> *Thanks and Regards,*
>>
>> *Sonal Ojha ▪ Sr.Engineer - Product Development **▪ **Sungard
>> Availability Services, India*
>>
>> 2nd Floor, Wing 4, Cluster D, MIDC Kharadi Knowledge Park, Pune - 411 014 ▪
>> Office: 267-234-9014 ▪ Mobile: +91 9922412645 ▪ sonal.o...@sungardas.com
>> ▪ www.sungardas. *in*
>>
>> *[image: Logo]* 
>> *[image: cid:image019.png@01CF48EC.6617C7F0]*
>>  *[image:
>> cid:image020.png@01CF48EC.6617C7F0]*
>>  *[image:
>> cid:image021.png@01CF48EC.6617C7F0]*
>>  *[image:
>> cid:image022.png@01CF48EC.6617C7F0]* 
>>  *[image: cid:image023.png@01CF48EC.6617C7F0]*
>>  *[image:
>> cid:image024.png@01CF48EC.6617C7F0]* 
>> *CONFIDENTIALITY:*  This e-mail (including any attachments) may contain
>> confidential, proprietary and privileged information, and unauthorized
>> disclosure or use is prohibited.  If you received this e-mail in error,
>> please notify the sender and delete this e-mail from your system.
>>
>
>
>
> --
>
> *Thanks and Regards,*
>
> *Sonal Ojha ▪ Sr.Engineer - Product Development **▪ **Sungard
> Availability Services, India*
>
> 2nd Floor, Wing 4, Cluster D, MIDC Kharadi Knowledge Park, Pune - 411 014 ▪
> Office: 267-234-9014 ▪ Mobile: +91 9922412645 ▪ sonal.o...@sungardas.com
> ▪ www.sungardas. *in*
>
> *[image: Logo]* 
> *[image: cid:image019.png@01CF48EC.6617C7F0]* 
>  *[image: cid:image020.png@01CF48EC.6617C7F0]*
>  *[image:
> cid:image021.png@01CF48EC.6617C7F0]*
>  *[image:
> cid:image022.png@01CF48EC.6617C7F0]*  
> *[image:
> cid:image023.png@01CF48EC.6617

Re: [QUERY] CLOUDSTACK-6885 Rsyslog not rotating

2014-07-01 Thread Sonal Ojha
Forgot to mention , the default size defined in the logrotate.conf file is
50M which is applicable to all the log rotate configuration files.



On Tue, Jul 1, 2014 at 3:23 PM, Sonal Ojha  wrote:

> The configuration for the rsyslog could be modified to add a size
> parameter to rotate the file if a specific size is reached. Modifying the
> rsyslog configuration under /etc/logrotate.d/ would do the job. Here is
> what I tried
>
> /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
> size 1k
> missingok
> notifempty
> compress
> delaycompress
> sharedscripts
> postrotate
> invoke-rc.d rsyslog force-reload > /dev/null
> endscript
> }
>
>
> On Mon, Jun 30, 2014 at 4:12 PM, Sonal Ojha 
> wrote:
>
>> Hello,
>>
>> I am seeing similar issue of rsyslog not rotating on the systemvm.
>>
>> I tried replacing the reload with rotate in the invoke-rc.d, but it didnt
>> seem to work. The only way I could make it work was by the following command
>>
>> logrotate -f /etc/logrotate.d/rsyslog
>>
>> Can you help to know if modifying the invoke-rc.d worked as expected.
>>
>> --
>>
>> *Thanks and Regards,*
>>
>> *Sonal Ojha ▪ Sr.Engineer - Product Development **▪ **Sungard
>> Availability Services, India*
>>
>> 2nd Floor, Wing 4, Cluster D, MIDC Kharadi Knowledge Park, Pune - 411 014 ▪
>> Office: 267-234-9014 ▪ Mobile: +91 9922412645 ▪ sonal.o...@sungardas.com
>> ▪ www.sungardas. *in*
>>
>> *[image: Logo]* 
>> *[image: cid:image019.png@01CF48EC.6617C7F0]*
>>  *[image:
>> cid:image020.png@01CF48EC.6617C7F0]*
>>  *[image:
>> cid:image021.png@01CF48EC.6617C7F0]*
>>  *[image:
>> cid:image022.png@01CF48EC.6617C7F0]* 
>>  *[image: cid:image023.png@01CF48EC.6617C7F0]*
>>  *[image:
>> cid:image024.png@01CF48EC.6617C7F0]* 
>> *CONFIDENTIALITY:*  This e-mail (including any attachments) may contain
>> confidential, proprietary and privileged information, and unauthorized
>> disclosure or use is prohibited.  If you received this e-mail in error,
>> please notify the sender and delete this e-mail from your system.
>>
>
>
>
> --
>
> *Thanks and Regards,*
>
> *Sonal Ojha ▪ Sr.Engineer - Product Development **▪ **Sungard
> Availability Services, India*
>
> 2nd Floor, Wing 4, Cluster D, MIDC Kharadi Knowledge Park, Pune - 411 014 ▪
> Office: 267-234-9014 ▪ Mobile: +91 9922412645 ▪ sonal.o...@sungardas.com
> ▪ www.sungardas. *in*
>
> *[image: Logo]* 
> *[image: cid:image019.png@01CF48EC.6617C7F0]* 
>  *[image: cid:image020.png@01CF48EC.6617C7F0]*
>  *[image:
> cid:image021.png@01CF48EC.6617C7F0]*
>  *[image:
> cid:image022.png@01CF48EC.6617C7F0]*  
> *[image:
> cid:image023.png@01CF48EC.6617C7F0]*
>  *[image:
> cid:image024.png@01CF48EC.6617C7F0]* 
> *CONFIDENTIALITY:*  This e-mail (including any attachments) may contain
> confidential, proprietary and privileged information, and unauthorized
> disclosure or use is prohibited.  If you received this e-mail in error,
> please notify the sender and delete this e-mail from your system.
>



-- 

*Thanks and Regards,*

*Sonal Ojha ▪ Sr.Engineer - Product Development **▪ **Sungard Availability
Services, India*

2nd Floor, Wing 4, Cluster D, MIDC Kharadi Knowledge Park, Pune - 411 014 ▪
Office: 267-234-9014 ▪ Mobile: +91 9922412645 ▪ sonal.o...@sungardas.com ▪
www.sungardas. *in*

*[image: Logo]* 
*[image: cid:image019.png@01CF48EC.6617C7F0]*
 *[image:
cid:image020.png@01CF48EC.6617C7F0]* 
 *[image: cid:image021.png@01CF48EC.6617C7F0]*
 *[image:
cid:image022.png@01CF48EC.6617C7F0]*
 *[image:
cid:image023.png@01CF48EC.6617C7F0]*
 *[image:
cid:image024.png@01CF48EC.6617C7F0]* 
*CONFIDENTIALITY:*  This e-mail (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited.  If you received this e-mail in error,
please notify the sender 

Re: [QUERY] CLOUDSTACK-6885 Rsyslog not rotating

2014-07-01 Thread Sonal Ojha
The configuration for the rsyslog could be modified to add a size parameter
to rotate the file if a specific size is reached. Modifying the rsyslog
configuration under /etc/logrotate.d/ would do the job. Here is what I tried

/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
size 1k
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
invoke-rc.d rsyslog force-reload > /dev/null
endscript
}


On Mon, Jun 30, 2014 at 4:12 PM, Sonal Ojha 
wrote:

> Hello,
>
> I am seeing similar issue of rsyslog not rotating on the systemvm.
>
> I tried replacing the reload with rotate in the invoke-rc.d, but it didnt
> seem to work. The only way I could make it work was by the following command
>
> logrotate -f /etc/logrotate.d/rsyslog
>
> Can you help to know if modifying the invoke-rc.d worked as expected.
>
> --
>
> *Thanks and Regards,*
>
> *Sonal Ojha ▪ Sr.Engineer - Product Development **▪ **Sungard
> Availability Services, India*
>
> 2nd Floor, Wing 4, Cluster D, MIDC Kharadi Knowledge Park, Pune - 411 014 ▪
> Office: 267-234-9014 ▪ Mobile: +91 9922412645 ▪ sonal.o...@sungardas.com
> ▪ www.sungardas. *in*
>
> *[image: Logo]* 
> *[image: cid:image019.png@01CF48EC.6617C7F0]* 
>  *[image: cid:image020.png@01CF48EC.6617C7F0]*
>  *[image:
> cid:image021.png@01CF48EC.6617C7F0]*
>  *[image:
> cid:image022.png@01CF48EC.6617C7F0]*  
> *[image:
> cid:image023.png@01CF48EC.6617C7F0]*
>  *[image:
> cid:image024.png@01CF48EC.6617C7F0]* 
> *CONFIDENTIALITY:*  This e-mail (including any attachments) may contain
> confidential, proprietary and privileged information, and unauthorized
> disclosure or use is prohibited.  If you received this e-mail in error,
> please notify the sender and delete this e-mail from your system.
>



-- 

*Thanks and Regards,*

*Sonal Ojha ▪ Sr.Engineer - Product Development **▪ **Sungard Availability
Services, India*

2nd Floor, Wing 4, Cluster D, MIDC Kharadi Knowledge Park, Pune - 411 014 ▪
Office: 267-234-9014 ▪ Mobile: +91 9922412645 ▪ sonal.o...@sungardas.com ▪
www.sungardas. *in*

*[image: Logo]* 
*[image: cid:image019.png@01CF48EC.6617C7F0]*
 *[image:
cid:image020.png@01CF48EC.6617C7F0]* 
 *[image: cid:image021.png@01CF48EC.6617C7F0]*
 *[image:
cid:image022.png@01CF48EC.6617C7F0]*
 *[image:
cid:image023.png@01CF48EC.6617C7F0]*
 *[image:
cid:image024.png@01CF48EC.6617C7F0]* 
*CONFIDENTIALITY:*  This e-mail (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited.  If you received this e-mail in error,
please notify the sender and delete this e-mail from your system.


[QUERY] CLOUDSTACK-6885 Rsyslog not rotating

2014-06-30 Thread Sonal Ojha
Hello,

I am seeing similar issue of rsyslog not rotating on the systemvm.

I tried replacing the reload with rotate in the invoke-rc.d, but it didnt
seem to work. The only way I could make it work was by the following command

logrotate -f /etc/logrotate.d/rsyslog

Can you help to know if modifying the invoke-rc.d worked as expected.

-- 

*Thanks and Regards,*

*Sonal Ojha ▪ Sr.Engineer - Product Development **▪ **Sungard Availability
Services, India*

2nd Floor, Wing 4, Cluster D, MIDC Kharadi Knowledge Park, Pune - 411 014 ▪
Office: 267-234-9014 ▪ Mobile: +91 9922412645 ▪ sonal.o...@sungardas.com ▪
www.sungardas. *in*

*[image: Logo]* 
*[image: cid:image019.png@01CF48EC.6617C7F0]*
 *[image:
cid:image020.png@01CF48EC.6617C7F0]* 
 *[image: cid:image021.png@01CF48EC.6617C7F0]*
 *[image:
cid:image022.png@01CF48EC.6617C7F0]*
 *[image:
cid:image023.png@01CF48EC.6617C7F0]*
 *[image:
cid:image024.png@01CF48EC.6617C7F0]* 
*CONFIDENTIALITY:*  This e-mail (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited.  If you received this e-mail in error,
please notify the sender and delete this e-mail from your system.