Skip to content
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

Send info to logstash via event handlers #1580

cornelinux opened this issue Apr 17, 2019 · 0 comments


None yet
1 participant
Copy link

commented Apr 17, 2019

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.
Other logging facilities might be more specific.

The notification handler then would allow notification via

  • email (email server) / already implemented
  • sms (sms gateway) / already implemented
  • logging (logging facility) / implemented with this issue.

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.