org.apache.accumulo.server.util
Class SendLogToChainsaw
java.lang.Object
org.apache.log4j.Layout
org.apache.log4j.xml.XMLLayout
org.apache.accumulo.server.util.SendLogToChainsaw
- All Implemented Interfaces:
- org.apache.log4j.spi.OptionHandler
public class SendLogToChainsaw
- extends org.apache.log4j.xml.XMLLayout
Fields inherited from class org.apache.log4j.Layout |
LINE_SEP, LINE_SEP_LEN |
Methods inherited from class org.apache.log4j.xml.XMLLayout |
activateOptions, format, getLocationInfo, getProperties, ignoresThrowable, setLocationInfo, setProperties |
Methods inherited from class org.apache.log4j.Layout |
getContentType, getFooter, getHeader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SendLogToChainsaw
public SendLogToChainsaw(String directory,
String fileNameFilter,
String host,
int port,
Date start,
Date end,
String regex,
String level)
throws Exception
- Throws:
Exception
processLogFiles
public void processLogFiles()
throws Exception
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Parameters:
args
- parameter 0: path to log directory parameter 1: filter to apply for logs to include (uses wildcards (i.e. logger* and IS case sensitive) parameter
2: chainsaw host parameter 3: chainsaw port parameter 4: start date filter parameter 5: end date filter parameter 6: optional regex filter to
match on each log4j message parameter 7: optional level filter
- Throws:
Exception
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.