[logs] Re: send text files via syslog in real-time

From: Matthew Caldwell (mcaldwel@private)
Date: Wed Jan 04 2006 - 06:52:18 PST


?
try using logger.
 
man logger
 
LOGGER(1)                 BSD General Commands Manual                LOGGER(1)
NAME
     logger - a shell command interface to the syslog(3) system log module
SYNOPSIS
     logger [-isd] [-f file] [-p pri] [-t tag] [-u socket] [message ...]
DESCRIPTION
     Logger makes entries in the system log.  It provides a shell command
     interface to the syslog(3) system log module.
     Options:
     -i       Log the process id of the logger process with each line.
     -s       Log the message to standard error, as well as the system log.
     -f file  Log the specified file.
     -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.
     -u sock  Write to socket as specified with socket instead of builtin sys-
              log routines.
     -d       Use a datagram instead of a stream connection to this socket.
     --       End the argument list. This is to allow the message to start
              with a hyphen (-).
     message  Write the message to log; if not specified, and the -f flag is
              not provided, standard input is logged.
     The logger utility exits 0 on success, and >0 if an error occurs.
:


________________________________

From: loganalysis-bounces+mattc=guarded.net@private on behalf of nevot
Sent: Tue 1/3/2006 2:55 PM
To: LogAnalysis@private
Subject: [logs] send text files via syslog in real-time



hi all!

we have a couple of programs that generate logs directly in files of
its own, and we want to send them in real-time via syslog

do you know of any utility (linux) for doing this?

thank you all
_______________________________________________
LogAnalysis mailing list
LogAnalysis@private
http://lists.shmoo.com/mailman/listinfo/loganalysis





_______________________________________________
LogAnalysis mailing list
LogAnalysis@private
http://lists.shmoo.com/mailman/listinfo/loganalysis



This archive was generated by hypermail 2.1.3 : Wed Jan 04 2006 - 09:33:28 PST