I have not found anywhere in the docs how to make selections from syslog by ident.
I use chrooted Unbound and I've configured it to write its log to syslog.
I've found in syslog.conf() an example how to select records from syslog by program name:
But there is also a notice
After some experiments I found that the following entry works as selector by identity (ident), instead of the previous code:
I'm not quite sure in the correctness of its syntax, but it works fine. I just wonder why this feature is not described anywhere in the documentation?
I use chrooted Unbound and I've configured it to write its log to syslog.
use-syslog: <yes or no>
Sets unbound to send log messages to the syslogd, using syslog().
The log facility LOG_DAEMON is used, with identity
"unbound". The logfile setting is overridden when use-syslog is
turned on. The default is to log to syslog.
I've found in syslog.conf() an example how to select records from syslog by program name:
Code:
!unbound
*.* /var/log/unbound.log
!*
But there is also a notice
It is preferred that selections be made
on facility rather than program, since the latter can easily vary in a
networked environment. In some cases, though, an appropriate facility
simply does not exist.
After some experiments I found that the following entry works as selector by identity (ident), instead of the previous code:
Code:
daemon.*.unbound /var/log/unbound.log
I'm not quite sure in the correctness of its syntax, but it works fine. I just wonder why this feature is not described anywhere in the documentation?