Re: socklog and hostname

Gerrit Pape <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <20040312132812.14720.qmail@08860e4de83492.315fe32.mid.smarden.org>
On Thu, Mar 11, 2004 at 08:57:25PM +0100, Jens Gutzeit wrote:
> Is there some way to add the hostname to the logs like syslog does?

For the socklog-unix service, you can tell svlogd to run a processor to
prepend the local hostname while rotating logs.

For the socklog-inet service, the ip address of the remote host is
automatically prepended to each log message, you can tell svlogd to run
a processor that looks up the hostnames, and replaces the ip addresses.

For the socklog-ucspi-tcp service, you can add TCPREMOTEIP as argument
to socklog, and do the same as with the socklog-inet service, or tell
tcpsvd to look up hostnames (-h), and use TCPREMOTEHOST.

See the socklog(8) man page.

Regards, Gerrit.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.