-
Notifications
You must be signed in to change notification settings - Fork 120
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
Logging to syslog #104
Comments
By remote, do you mean on the filesystem or to a 3rd party site (i.e. remove via https etc?) What sort of output would you want to see? JSON? |
We are consolidating all our logging and we are using syslog. So we have a central immutable store for logging. http://en.wikipedia.org/wiki/Syslog logging to the local syslog would work, because its easy to have that forwarded tot the remote syslog. But best would be to be able to use remote syslog directly. It could work like the syslogappender of log4j |
Fair enough. Do you have some sample code to work off to do this? On a side note, if we aren't able to integrate it we can always expand the plugins to all the different logging methods so you can integrate syslog logging on your specific system. |
I found this python implementation, looks pretty straight forward... only thing im not sure about is sending UDP from oracle but i doubt that is a problem ;-) https://liftoff.github.io/GateOne/_modules/remote_syslog.html#syslog |
Can you please put together a proof of concept on it? |
Ok apparently PL/SQL does not do UDP natively, but using Java it can be done. I've put this together something that works in my setup, For reference these are the facilities and levels supported by syslog:
This is my POC
|
I created a plugin that uses the above mechanism to log to a remote syslog server, i made a pull request so you can take a look at it. |
@barsema This is great! I haven't accepted your pull request yet. I want to think of some standards for 3rd party plugins. This will mainly involve preference names and function/procedure names. As part of 3.1 we launched the Odds are we may choose something like I've schedule this for the 3.2 release however I will probably rename the |
That's sound terrific. |
It would be great if we could log directly to (a remote) syslog.
The text was updated successfully, but these errors were encountered: