Hi to all!
I need to know if it’s possible to send audit log to a syslog.
We have configured advanced logging to logging.cfg like best practice:
[formatters]
keys=detail
[handlers]
keys=file,hand02
[formatter_detail]
class=privacyidea.lib.log.SecureFormatter
format=[%(asctime)s][%(process)d][%(thread)d][%(levelname)s][%(name)s:%(lineno)d] %(message)s
[handler_file]
# Rollover the logfile at midnight
class=logging.handlers.RotatingFileHandler
backupCount=14
maxBytes=10000000
formatter=detail
level=ERROR
args=('/var/log/privacyidea/privacyidea.log',)
[handler_hand02]
class=handlers.SysLogHandler
level=ERROR
formatter=detail
args=(('x.x.x.x', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)
[loggers]
keys=root,privacyidea
[logger_privacyidea]
handlers=file,hand02
qualname=privacyidea
level=ERROR
[logger_root]
level=ERROR
handlers=file
All working fine but we don’t be able to triggers audit log on syslog.
It’s possible to work on this?
Thanks a lot.