SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE




YUM REPOSITORY

 
 

MAN page from Mandriva 2011 socklog-2.1.0-5mdv2010.0.i586.rpm

socklog

Section: Maintenance Commands (8)
Index 

NAME

socklog - small and secure syslogd replacement for use with runit 

SYNOPSIS

socklog[-rRU][unix][path]
socklog[-rR]inet[ip][port]
socklog[-rR]ucspi[args] 

DESCRIPTION

socklogis run under runit'srunsv(8),writing syslog messages it receives from unix domain socketpathor an inet udp socketip:portthrough a pipe provided byrunsv(8)to asvlogd(8)process.

socklogcan be run as an ucspi application to listen to an unix domain stream socketand for more flexible distributed logging.

If the environment variables $UID and/or $GID are present,socklogdrops permissions to those ids after creating and binding the socket (not inucspimode).

socklogconverts syslog facility and priority information to names(facility.priority:)as found in/usr/include/syslog.hat compile time if present.

On solarissocklogalso acceptssun_streamas first argument. Please see the web page for details. 

UNIX SOCKET

socklog[unix] [path]

Startingsocklogwith the 1st argumentunix,socklogwill listen to the unix domain socketpath.Ifpathis omitted, the default/dev/logis used.

The 1st argument may be omitted, default isunix. 

INET SOCKET

sockloginet [ip] [port]

Startingsocklogwith the 1st argumentinet,socklogwill listen to the inet udp socketip:port.

Ifipstarts with 0,socklogwill bind to all local interfaces.

Ifportis less or equal 1024,socklogmust be run by root.

portmay be omitted, default is 514.ipmay be omitted, default is 0.

socklogprependsa.b.c.d:to each syslog message it receives, wherea.b.c.dis the ip address of the connecting system. 

UCSPI MODE

socklogucspi [args]

Startingsocklogwith the 1st argumentucspi,socklogwill run as an ucspi application. Normallysocklogwill only be started inucspimode by an ucspi server tool, such astcpsvd(8),tcpserver(1)orunixserver.

For eacharg,socklogwill prepend$arg:to each syslog message, if the environment variable$argis present (maximum is 8). 

OPTIONS

-r
raw.Write the raw syslog messages (no conversion of facility and priority)to the pipe, additionally to the log messages with syslog facility andpriority converted to names.
-R
raw only.Same as -r above, but write the raw syslog messages only.
-U
respect umask.Don't set umask to 0 before creating a unix domain socket, but respectthe current setting ofumask(2).This option only takes effect in unix mode.
 

SEE ALSO

sv(8),runsvdir(8),runsv(8),svlogd(8),tryto(1),uncat(1),socklog-check(8),tcpsvd(8),nc(1)


 http://smarden.org/socklog/
 http://smarden.org/runit/ 

AUTHOR

Gerrit Pape <papeAATTsmarden.org>


 

Index

NAME
SYNOPSIS
DESCRIPTION
UNIX SOCKET
INET SOCKET
UCSPI MODE
OPTIONS
SEE ALSO
AUTHOR

This document was created byman2html,using the manual pages.