org.apache.pig.piggybank.storage.apachelog
Class CommonLogLoader
java.lang.Object
org.apache.pig.LoadFunc
org.apache.pig.piggybank.storage.RegExLoader
org.apache.pig.piggybank.storage.apachelog.CommonLogLoader
public class CommonLogLoader
- extends RegExLoader
CommonLogLoader is used to load logs based on Apache's common log format, based on a format like
LogFormat "%h %l %u %t \"%r\" %>s %b" common
The log filename ends up being access_log from a line like
CustomLog logs/access_log common
Example:
raw = LOAD 'access_log' USING org.apache.pig.piggybank.storage.apachelog.CommongLogLoader AS (remoteAddr,
remoteLogname, user, time, method, uri, proto, bytes);
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonLogLoader
public CommonLogLoader()
getPattern
public Pattern getPattern()
- Specified by:
getPattern
in class RegExLoader
Copyright © 2007-2012 The Apache Software Foundation