What is syslogger ?
This a software that send file into syslog (local or remote). This can be used for example to send a pipe like for example apache log into a remote system.
Why syslogger ?
Because I wanted a simple releable way to remote log lots of webservers
to a central point with the possiblity to have a central point of logging
with the problem of connected stream system (eg mod_sql for apache that
don't support the remote database is down).
There is on most Unix OS an utility named logger, but it has some problems
to use with real time applications : it waits the whole buffer to be
filed before sending it on syslog. So it is unusable for such applications.
How is developped syslogger ?
It is developped on Mac OS X and FreeBSD, it should work with allmost system that have syslog and bsd/unix base.
License of syslogger ?
Simple : Mozilla Public License 1.1 (eg MPL 1.1), but some parts of the code are comming from FreeBSD logger that I have adapted to this software.
What else ?
If you find this software please tell me. Send me money (using my paypal account) or anything else.
USAGE
NAME
syslogger -- make entries in the system log
SYNOPSIS
syslogger [-46Ai] [-h host] [-p pri] [-t tag]
DESCRIPTION
The syslogger utility provides a shell command interface to the syslog(3)
system log module.
The following options are available:
-4 Force syslogger to use IPv4 addresses only.
-6 Force syslogger to use IPv6 addresses only.
-A By default, syslogger tries to send the message to only one
address, if the host has more than one A or AAAA record. If this
option is specified, logger tries to send the message to all
addresses.
-i Log the process id of the logger process with each line.
-h host
Send the message to the remote system host instead of logging it
locally.
-p pri Enter the message with the specified priority. The priority may
be specified numerically or as a ``facility.level'' pair. For
example, ``-p local3.info'' logs the message(s) as informational
level in the local3 facility. The default is ``user.notice.''
-t tag Mark every line in the log with the specified tag.
DIAGNOSTICS
The logger utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
In httpd.conf (apache 1.x or 2.x) :
CustomLog "|/usr/local/bin/syslogger -A -4 -h 192.168.0.1" combined
SEE ALSO
syslog(3), syslogd(8)
STANDARDS
The logger command is expected to be IEEE Std 1003.2 (``POSIX.2'') com-
patible.
Download
- You can download here :
- syslogger-1.0.tar.gz.
Feedback
Bugs, flames, money, junk food or postcard can be sent to Xavier Beaudouin <kiwi@oav.net>
If you wishes to send money (that I will use to pay hosting....) please feel free to use my paypal account : kiwi@kazar.org or by clicking on the following button :