Log file when using database

edited August 23 in Suggestions
Hi there!
When using multiOTP with a database, log entries are also written on the database. Is there any way to change this behavior, so I can also/instead write logs to a file on the server?
I'd like to send them to an aggregator like ElasticSearch, be able to logrotate, clean up old logs for GDPR compliance... Which is way easier with files.
Thanks!

Comments

  • Hello,
    The commercial version has a "Send to SysLog server" option, but the open source edition don't. When the backend is set to "database", everything is written in the backend, including the logs. There are currently no option to change thid behavior.
    Regards,
  • edited August 27
    Hi there!
    Please note that "Send to SysLog server" is also available to open source version.
    Starting with version 5.9.8.0, a new option called "log-forced-in-file" is now available, which should fit your needs.
    If you are happy with this solution, don't hesitate to support our development: https://6co.ch/donate-multiotp/
    Regards,
This discussion has been closed.