Package ZenEvents :: Module zensyslog :: Class ZenSyslog
[show private | hide private]
[frames | no frames]

Class ZenSyslog

AbstractDatagramProtocol --+    
                           |    
            DatagramProtocol --+
                               |
         CmdBase --+           |
                   |           |
           ZenDaemon --+       |
                       |       |
                ZCmdBase --+   |
                           |   |
                 EventServer --+
                               |
                              ZenSyslog


Method Summary
  __init__(self)
  buildOptions(self)
basic options setup sub classes can add more options here
  datagramReceived(self, msg, client_address)
Use a separate thread to process the request.
  doHandleRequest(self, host, msg, ipaddr, rtime)
process a single syslog message, called from the inherited thread
  expand(self, msg, client_address)
expands a syslog message into a string format suitable for writing to the filesystem such that it appears the same as it would had the message been logged by the syslog daemon.
  gotHostname(self, response, data)
send the resolved address, if possible, and the event via the thread
Inherited from DatagramProtocol: connectionRefused
Inherited from AbstractDatagramProtocol: __getstate__, doStart, doStop, makeConnection, startProtocol, stopProtocol
Inherited from EventServer: finish, heartbeat, main, report, reportCycle, run, sendEvent, sendEvents, sigTerm, useTcpFileDescriptor, useUdpFileDescriptor
Inherited from ZCmdBase: closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb, zeoConnect
Inherited from ZenDaemon: becomeDaemon, changeUser, setupLogging
Inherited from CmdBase: buildParser, parseOptions

Class Variable Summary
str name = 'zensyslog'
str SAMPLE_DATE = 'Apr 10 15:19:22'
str SYSLOG_DATE_FORMAT = '%b %d %H:%M:%S'
Inherited from AbstractDatagramProtocol: noisy, numPorts, transport
Inherited from ZenDaemon: pidfile
Inherited from CmdBase: doesLogging

Method Details

buildOptions(self)

basic options setup sub classes can add more options here
Overrides:
ZenEvents.EventServer.EventServer.buildOptions (inherited documentation)

datagramReceived(self, msg, client_address)

Use a separate thread to process the request.
Overrides:
twisted.internet.protocol.AbstractDatagramProtocol.datagramReceived

doHandleRequest(self, host, msg, ipaddr, rtime)

process a single syslog message, called from the inherited thread

expand(self, msg, client_address)

expands a syslog message into a string format suitable for writing to the filesystem such that it appears the same as it would had the message been logged by the syslog daemon.

gotHostname(self, response, data)

send the resolved address, if possible, and the event via the thread

Class Variable Details

name

Type:
str
Value:
'zensyslog'                                                            

SAMPLE_DATE

Type:
str
Value:
'Apr 10 15:19:22'                                                      

SYSLOG_DATE_FORMAT

Type:
str
Value:
'%b %d %H:%M:%S'                                                       

Generated by Epydoc 2.1 on Thu Aug 16 09:55:11 2007 http://epydoc.sf.net