com.nesscomputing.httpserver.log.syslog
Class SyslogRequestLog

java.lang.Object
  extended by org.eclipse.jetty.util.component.AbstractLifeCycle
      extended by com.nesscomputing.httpserver.log.syslog.SyslogRequestLog
All Implemented Interfaces:
org.eclipse.jetty.server.RequestLog, org.eclipse.jetty.util.component.LifeCycle

public class SyslogRequestLog
extends org.eclipse.jetty.util.component.AbstractLifeCycle
implements org.eclipse.jetty.server.RequestLog

Send jetty request log straight into syslog to allow aggregation with logstash.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
 
Field Summary
 
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
Constructor Summary
SyslogRequestLog(SyslogRequestLogConfig requestLogConfig, Map<String,LogFields.LogField> knownFields)
           
 
Method Summary
 void doStop()
           
 void log(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response)
           
 
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, doStart, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

Constructor Detail

SyslogRequestLog

@Inject
public SyslogRequestLog(SyslogRequestLogConfig requestLogConfig,
                               Map<String,LogFields.LogField> knownFields)
Method Detail

doStop

public void doStop()
Overrides:
doStop in class org.eclipse.jetty.util.component.AbstractLifeCycle

log

public void log(org.eclipse.jetty.server.Request request,
                org.eclipse.jetty.server.Response response)
Specified by:
log in interface org.eclipse.jetty.server.RequestLog


Copyright © 2012 Ness Computing, Inc.. All Rights Reserved.