Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: RSyslog: users

Multiple SIGHUPs

 

 

RSyslog users RSS feed   Index | Next | Previous | View Threaded


Gerrard.Geldenhuis at worldpay

Jul 23, 2012, 7:15 AM

Post #1 of 2 (212 views)
Permalink
Multiple SIGHUPs

Hi

The default /etc/logrotate.d/syslog file looks as follows:

/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler
/var/log/boot.log /var/log/cron {
sharedscripts
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
}

I want to add kern.log and daemon.log but would prefer to add these as
seperate entries in the logrotate.d directory. However if I do that it
will mean I send a SIGHUP signal to rsyslog at least 3 different times
and possibly more for other custom rsyslog related log files.

My question is: does it matter to rsyslog, how many times I send it a
SIGHUP? Is there a performance/"loss of logs" impact. The only reason I
am doing this is to keep customisation seperate from basic config but if
the impact on rsyslog is detrimental then I would prefer to have working
logs rather than pretty config files.

Regards

Gerrard Geldenhuis | IT Operations |WorldPay
M +44 772 448 7979
gerrard.geldenhuis [at] worldpay


rgerhards at hq

Jul 23, 2012, 8:16 AM

Post #2 of 2 (208 views)
Permalink
Re: Multiple SIGHUPs [In reply to]

> -----Original Message-----
> From: rsyslog-bounces [at] lists [mailto:rsyslog-
> bounces [at] lists] On Behalf Of Gerrard Geldenhuis
> Sent: Monday, July 23, 2012 4:16 PM
> To: rsyslog-users
> Subject: [rsyslog] Multiple SIGHUPs
>
> Hi
>
> The default /etc/logrotate.d/syslog file looks as follows:
>
> /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler
> /var/log/boot.log /var/log/cron {
> sharedscripts
> 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
> }
>
> I want to add kern.log and daemon.log but would prefer to add these as
> seperate entries in the logrotate.d directory. However if I do that it
> will mean I send a SIGHUP signal to rsyslog at least 3 different times
> and possibly more for other custom rsyslog related log files.

SIGHUP just closes the log files, so other than a (very) slight performance hit for re-opening them, this is no issue.
Rainer
>
> My question is: does it matter to rsyslog, how many times I send it a
> SIGHUP? Is there a performance/"loss of logs" impact. The only reason I
> am doing this is to keep customisation seperate from basic config but
> if
> the impact on rsyslog is detrimental then I would prefer to have
> working
> logs rather than pretty config files.
>
> Regards
>
> Gerrard Geldenhuis | IT Operations |WorldPay
> M +44 772 448 7979
> gerrard.geldenhuis [at] worldpay
>
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards

RSyslog users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.