Skip to content

Commit

Permalink
Improve streaming and aggregation of replay events through the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemonk3y committed Jun 15, 2017
1 parent ceefe0d commit e3803b1
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ public ReplayEventsHandler(LogScanningHandler next, LogRequest request, AggSpace
public void handle(FieldSet fieldSet, String[] fields, Query query, HistoEvent histo, long bucketTime,
int lineNumber, long fileStartTime, long fileEndTime, long eventTime, String lineData, MatchResult matchResult, long requestStartTimeMs, long requestEndTimeMs, long bucketWidth) {

// We want to send a MAX or N items per host source
try {

if (request.getHits(hostHash) < maxEventsPerHost) {
query.increment(hostHash);


Expand All @@ -69,7 +67,6 @@ public void handle(FieldSet fieldSet, String[] fields, Query query, HistoEvent h
ReplayEvent replayEvent = new ReplayEvent(sourceURI, lineNumber, query.getSourcePos(), query.groupId(), subscriber, eventTime, lineData);
replayEvent.setDefaultFieldValues(fieldSet.getId(), hostname, filenameOnly, path, tags, agentType, sourceURI, new Integer(lineData.length()).toString());
aggSpace.write(replayEvent, false, requestHash, logId, eventTime);
}
} finally {
if (next != null) next.handle(fieldSet, fields, query, histo, bucketTime, lineNumber, fileStartTime, fileEndTime, eventTime, lineData, matchResult, requestStartTimeMs, requestEndTimeMs, bucketWidth);
}
Expand Down

0 comments on commit e3803b1

Please sign in to comment.