org.apache.accumulo.server.util
Class SendLogToChainsaw

java.lang.Object
  extended by org.apache.log4j.Layout
      extended by org.apache.log4j.xml.XMLLayout
          extended by org.apache.accumulo.server.util.SendLogToChainsaw
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class SendLogToChainsaw
extends org.apache.log4j.xml.XMLLayout


Field Summary
 
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN
 
Constructor Summary
SendLogToChainsaw(String directory, String fileNameFilter, String host, int port, Date start, Date end, String regex, String level)
           
 
Method Summary
static void main(String[] args)
           
 void processLogFiles()
           
 
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
 

Constructor Detail

SendLogToChainsaw

public SendLogToChainsaw(String directory,
                         String fileNameFilter,
                         String host,
                         int port,
                         Date start,
                         Date end,
                         String regex,
                         String level)
                  throws Exception
Throws:
Exception
Method Detail

processLogFiles

public void processLogFiles()
                     throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Parameters:
args - 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 © 2013 Apache Accumulo Project. All Rights Reserved.