-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syslog Handler - External syslog server #51
Comments
Sorry but I have never used syslog much so I'm not exactly familiar with that stuff. Would you mind giving an example of how that would look like in plain php? |
I don't have an example of my own, but look at this http://www.phpclasses.org/package/2787-PHP-Log-data-to-a-RFC-3164-compliant-syslog-server.html |
What you linked is an implementation in user-land to contact a remote server. It does not uses the PHP built-in syslog functions (which are probably limited to accessing the syslog configured locally). |
Well I suppose the SyslogHandler could take an optional $host argument where it sends everything. Looking at that code that was linked, the actual sending is a couple lines of code. If you can provide a pull request for it it would definitely improve the chances it gets done though, I'm currently really swamped. |
I'll have a go at it. :) |
The SocketHandler for syslog-ng (which I guess is close enough to this feature request) has been merged, so I am closing this. See #63 and https://github.com/Seldaek/monolog/blob/master/doc/sockets.md |
There is a Just leaving it here, because I found this issue and took me another 30 minutes to find the handler :-) |
It is not possible to use an external syslog server, it can only log to the local syslog server.
The text was updated successfully, but these errors were encountered: