public interface LogService
| Modifier and Type | Method and Description |
|---|---|
Iterable<LogMessage> |
query(LogQuery query,
long startTs,
long endTs)
Selects logs messages of the specified time interval.
|
Iterable<LogMessage> |
tail(LogQuery query,
int startPositionInBytes)
Performs ongoing tailing of the logs messages starting from the given position relative to the end.
|
Iterable<LogMessage> tail(LogQuery query, int startPositionInBytes) throws LogServiceException, UnsupportedLogQueryException
E.g. tail(query, 1024) will return last 1KB of messages and continue to output as new data appears.
query - specifies which messages to selectstartPositionInBytes - position to start tailing from. It is relative to the end position.LogServiceException - request cannot be completed.UnsupportedLogQueryException - when given query is not supported by the back-end.Iterable<LogMessage> query(LogQuery query, long startTs, long endTs) throws LogServiceException, UnsupportedLogQueryException
query - specifies which messages to selectstartTs - start point of the time range selectionendTs - end point of the time range selectionUnsupportedLogQueryException - when given query is not supported by the back-end.LogServiceExceptionCopyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.