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 <sonal.o...@sungardas.com> 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 <sonal.o...@sungardas.com> > 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. <http://www.sungardas.com/>*in* >> >> *[image: Logo]* <http://www.sungardas.com/> >> *[image: cid:image019.png@01CF48EC.6617C7F0]* >> <http://blog.sungardas.com/> *[image: >> cid:image020.png@01CF48EC.6617C7F0]* >> <http://www.youtube.com/user/SunGardAS> *[image: >> cid:image021.png@01CF48EC.6617C7F0]* >> <https://plus.google.com/u/0/102459878242108588663/posts> *[image: >> cid:image022.png@01CF48EC.6617C7F0]* <https://www.facebook.com/SunGardAS> >> *[image: cid:image023.png@01CF48EC.6617C7F0]* >> <http://www.linkedin.com/company/sungard-availability-services> *[image: >> cid:image024.png@01CF48EC.6617C7F0]* <https://twitter.com/SunGardAS> >> *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. <http://www.sungardas.com/>*in* > > *[image: Logo]* <http://www.sungardas.com/> > *[image: cid:image019.png@01CF48EC.6617C7F0]* <http://blog.sungardas.com/> > *[image: cid:image020.png@01CF48EC.6617C7F0]* > <http://www.youtube.com/user/SunGardAS> *[image: > cid:image021.png@01CF48EC.6617C7F0]* > <https://plus.google.com/u/0/102459878242108588663/posts> *[image: > cid:image022.png@01CF48EC.6617C7F0]* <https://www.facebook.com/SunGardAS> > *[image: > cid:image023.png@01CF48EC.6617C7F0]* > <http://www.linkedin.com/company/sungard-availability-services> *[image: > cid:image024.png@01CF48EC.6617C7F0]* <https://twitter.com/SunGardAS> > *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. <http://www.sungardas.com/>*in* *[image: Logo]* <http://www.sungardas.com/> *[image: cid:image019.png@01CF48EC.6617C7F0]* <http://blog.sungardas.com/> *[image: cid:image020.png@01CF48EC.6617C7F0]* <http://www.youtube.com/user/SunGardAS> *[image: cid:image021.png@01CF48EC.6617C7F0]* <https://plus.google.com/u/0/102459878242108588663/posts> *[image: cid:image022.png@01CF48EC.6617C7F0]* <https://www.facebook.com/SunGardAS> *[image: cid:image023.png@01CF48EC.6617C7F0]* <http://www.linkedin.com/company/sungard-availability-services> *[image: cid:image024.png@01CF48EC.6617C7F0]* <https://twitter.com/SunGardAS> *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.