Bug 491 - configurable syslog identity
configurable syslog identity
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
unspecified
i386 Linux
: P5 enhancement
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-14 05:04 CET by Stephen Fung
Modified: 2013-04-18 14:23 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Fung 2013-03-14 05:04:40 CET
Hi Unbound team,

We are currently running multiple instances of Unbound on the same box but all of them send log to syslog with the same identity "unbound", which makes troubleshooting quite difficult.

Is there any chance that a configurable syslog identity will be introduced to unbound.conf in near future?

Thanks!

Regards,
Stephen
Comment 1 Wouter Wijngaards 2013-04-16 09:44:22 CEST
Hi Stephen,

After talking with my colleagues, we have found the following solution (which is a single line of code change), where we pick the program name.  You can then use exec -a or ln -s to change the program name as needed.

Is this a suitable solution?

Best regards,
   Wouter
Comment 2 Stephen Fung 2013-04-17 09:42:50 CEST
(In reply to comment #1)
> Hi Stephen,
> 
> After talking with my colleagues, we have found the following solution (which
> is a single line of code change), where we pick the program name.  You can then
> use exec -a or ln -s to change the program name as needed.
> 
> Is this a suitable solution?
> 
> Best regards,
>    Wouter

Hi Wouter,

This works for us as we are currently symlinking the actual binary to /usr/sbin.

e.g.

/usr/sbin/unbound.icache -> /etc/alternatives/unbound-icache/sbin/unbound

Then the init script will execute /usr/sbin/unbound.icache.

Thanks for looking into this!


Regards,
Stephen
Comment 3 Wouter Wijngaards 2013-04-18 14:23:22 CEST
Hi Stephen,

This change is part of the svn trunk (for the next release) now.

Thank you for the report,
   Wouter