Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Send info to logstash et.al. via event handlers #1580
Is your feature request related to a problem? Please describe.
We want to send information about events in the privacyIDEA system to a logging facility like logstash or...
Describe the solution you'd like
There is already an issue for this in #1072 to send the audit log to the logging facility. But there might also be another approach by either adding a new event handler or enhancing the notification handler.
This way we could create more specific logging events, since logging events could be related to the set of conditions.
The log-event-handler could read a python logging.conf file. Using the python logging mechanism could help us to have enough flexibility for either writing to a file or to syslog or to email or wherever.
For this we would need to define a new object "logging facility". One class of logging facilities could be the python logging and would require a logging.conf for configuration.
The notification handler then would allow notification via
There are already a lot of tags for the "message" in the event handler. The message then would simply be the log entry sent to the logging facility.
(To be discussed for 3.1)