[OpenSIPS-Users] Logging issue

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Jul 29 18:47:31 CEST 2010


Hi Wesley,

But what were you logging issues ?

Regards,
Bogdan

Wesley Volcov wrote:
> Hello All,
>
> I've found some issues about logging problem with opensips.
> I've changed my syslog to async writing, and  changed my logrotate to 
> hourly with 150MB of log size. I seems to work fine after this 
> changes. I had no problem after this! :D
>
> My syslog.conf:
> *.info                                                  -/var/log/messages
>
> Follow my /etc/cron.hourly/logrotate:
> #!/bin/sh
>
> /usr/sbin/logrotate /etc/logrotate.conf
> EXITVALUE=$?
> if [ $EXITVALUE != 0 ]; then
>     /usr/bin/logger -t logrotate "ALERT exited abnormally with 
> [$EXITVALUE]"
> fi
> exit 0
>
> Follow my /etc/logrotate.d/syslog:
> /var/log/messages {
>         rotate 300
>         size 150M
>         compress
>         missingok
>         notifempty
>     postrotate
>         /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> 
> /dev/null || true
>         /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> 
> /dev/null || true
>     endscript
> }
>
>
> Regards,
>
> -- 
> Wesley Volcov
> Email: wesleyvolcov at gmail.com <mailto:wesleyvolcov at gmail.com>
> Messenger: volcov at live.com <mailto:volcov at live.com>
> Mobile: +55 11 9989-5348
> Website: http://volcov.blogspot.com
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list