Re: [openupload-devel] syslog logging info
Status: Beta
Brought to you by:
tsdogs
|
From: Alessandro B. <ts...@br...> - 2010-02-26 14:02:08
|
Hi Fabio,
Fabio Macchi ha scritto:
> Hi,
>
> I’ve enabled syslog logging level ‘statistics’, but I can’t figure out
> in which file this events are logged: have I to expect this events in
> /var/log/httpd/access_log ( or /var/log/httpd/ssl_access_log, as I use
> https ) or in a completely separated file ?
>
No, as its syslog the events are logged to the system syslog,
/etc/syslog.conf (or rsyslog.conf or whatever is available on the
system) is used to configure where to log events.
>
> I’d like to forward these events to an external syslog server: any
> suggestion about the best way to separate these events from other ?
>
hmm, probably to do this you need to use the openlog function first [1]
you can use the local0 to 7. For the nature of syslog you cannot define
it based on a process id or name.
rsyslogd should be able to acomplish this with a special filter. [2]
you can put something like this at line 106 of lib/main.inc.php
openlog('openupload',LOG_PID | LOG_ODELAY, LOG_LOCAL7);
Hope this helps,
Alessandro
[1] http://www.php.net/manual/en/function.openlog.php
[2] http://www.rsyslog.com/
|