Class CombinedLogReader
java.lang.Object
com.northconcepts.datapipeline.core.DataObject
com.northconcepts.datapipeline.core.Endpoint
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataReader
com.northconcepts.datapipeline.core.AbstractReader
com.northconcepts.datapipeline.core.ParsingReader
com.northconcepts.datapipeline.weblog.CombinedLogReader
Obtains records from a webserver's access log file using the Combined Log format.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.northconcepts.datapipeline.core.DataEndpoint
DataEndpoint.State -
Field Summary
Fields inherited from class com.northconcepts.datapipeline.core.ParsingReader
lineNumber, parser, valueBufferFields inherited from class com.northconcepts.datapipeline.core.AbstractReader
currentRecord, fieldNames, lastRow, startingRowFields inherited from class com.northconcepts.datapipeline.core.DataReader
fieldLineage, recordLineageFields inherited from class com.northconcepts.datapipeline.core.DataEndpoint
lastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYFields inherited from class com.northconcepts.datapipeline.core.Endpoint
BUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEFields inherited from class com.northconcepts.datapipeline.core.DataObject
id, log, name, TIMESTAMP_FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionCombinedLogReader(File file) Creates a reader for the log file; each record has the fields remoteHost, clientUsername, authenticatedUsername, date, request, status, bytes, referrer, userAgent and cookies.CombinedLogReader(Reader reader) Creates a reader for the log stream; each record has the fields remoteHost, clientUsername, authenticatedUsername, date, request, status, bytes, referrer, userAgent and cookies. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanfillRecord(Record record) Populates the given record with the next row's values; returns false at the end of the input.Methods inherited from class com.northconcepts.datapipeline.core.ParsingReader
addExceptionProperties, addLineage, available, getCharsetName, getLineNumber, isDigit, isLetter, isLineageSupported, isNewLine, match, matchCHARACTER, matchDIGIT, matchDIGITS, matchDOUBLE, matchINTEGER, matchLINE, matchNEWLINE, matchNEWLINES, open, peekCHARACTERMethods inherited from class com.northconcepts.datapipeline.core.AbstractReader
getFieldNames, getLastRow, getStartingRow, isFieldNamesInFirstRow, isSkipEmptyRows, read, readImpl, setFieldNames, setFieldNames, setFieldNamesInFirstRow, setLastRow, setSkipEmptyRows, setStartingRowMethods inherited from class com.northconcepts.datapipeline.core.DataReader
getBufferSize, getNestedEndpoint, getNestedReader, getReader, getRootEndpoint, getRootReader, isExhausted, isSaveLineage, peek, pop, push, setSaveLineage, skipMethods inherited from class com.northconcepts.datapipeline.core.DataEndpoint
close, decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toStringMethods inherited from class com.northconcepts.datapipeline.core.Endpoint
addElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime, setDescription
-
Constructor Details
-
CombinedLogReader
Creates a reader for the log file; each record has the fields remoteHost, clientUsername, authenticatedUsername, date, request, status, bytes, referrer, userAgent and cookies.- Throws:
FileNotFoundException
-
CombinedLogReader
Creates a reader for the log stream; each record has the fields remoteHost, clientUsername, authenticatedUsername, date, request, status, bytes, referrer, userAgent and cookies.
-
-
Method Details
-
fillRecord
Description copied from class:AbstractReaderPopulates the given record with the next row's values; returns false at the end of the input.- Overrides:
fillRecordin classParsingReader- Throws:
Throwable
-