MarcJHuber / event-driven-servers

A collection of event-driven servers (currently: tac_plus, tac_plus-ng, ftpd, tcprelay)
https://www.pro-bono-publico.de/projects
Other
100 stars 25 forks source link

tac_plus-ng: multiple log destinations #67

Closed jakunow closed 1 year ago

jakunow commented 1 year ago

Hi,

As far as I was able to test you can have only single effective logging destination. Configuration doesn't prevent you from entering multiple, but last one entered seems to be effective.

In this scenario logs would be created only in file

        log authclog {
                destination = 10.0.0.1
                destination = /var/log/tac_plus/authc/%Y/%m/%d.log

In this it would be only send to remote server

        log authclog {
                destination = /var/log/tac_plus/authc/%Y/%m/%d.log
                destination = 10.0.0.1

would it be possible to have multiple syslog destinations?

MarcJHuber commented 1 year ago

Hi Jakub,

a "log" statement defines exactly one destination. The access/authorization/accounting logs however can utilize more than one log definition, so if you want to send logs to multiple destinations:

log log1 { ... } log log2 { ... }

access log = log1 access log = log2

Cheers,

Marc