diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/DatafeedJob.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/DatafeedJob.java index 227c8615a78..38f6d897cbc 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/DatafeedJob.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/DatafeedJob.java @@ -118,7 +118,7 @@ class DatafeedJob { } } if (!isIsolated) { - LOGGER.debug("Lookback finished after being stopped"); + LOGGER.debug("[{}] Lookback finished after being stopped", jobId); } return null; } @@ -133,7 +133,7 @@ class DatafeedJob { FlushJobAction.Request request = new FlushJobAction.Request(jobId); request.setSkipTime(String.valueOf(startTime)); FlushJobAction.Response flushResponse = flushJob(request); - LOGGER.info("Skipped to time [" + flushResponse.getLastFinalizedBucketEnd().getTime() + "]"); + LOGGER.info("[{}] Skipped to time [{}]", jobId, flushResponse.getLastFinalizedBucketEnd().getTime()); return flushResponse.getLastFinalizedBucketEnd().getTime(); } return startTime; diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/extractor/chunked/ChunkedDataExtractor.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/extractor/chunked/ChunkedDataExtractor.java index 2fb3b388b56..c7a87086aa9 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/extractor/chunked/ChunkedDataExtractor.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/extractor/chunked/ChunkedDataExtractor.java @@ -98,8 +98,8 @@ public class ChunkedDataExtractor implements DataExtractor { currentEnd = currentStart; chunkSpan = context.chunkSpan == null ? dataSummary.estimateChunk() : context.chunkSpan.getMillis(); chunkSpan = context.timeAligner.alignToCeil(chunkSpan); - LOGGER.debug("Chunked search configured: totalHits = {}, dataTimeSpread = {} ms, chunk span = {} ms", - dataSummary.totalHits, dataSummary.getDataTimeSpread(), chunkSpan); + LOGGER.debug("[{}]Chunked search configured: totalHits = {}, dataTimeSpread = {} ms, chunk span = {} ms", + context.jobId, dataSummary.totalHits, dataSummary.getDataTimeSpread(), chunkSpan); } else { // search is over currentEnd = context.end; @@ -164,7 +164,7 @@ public class ChunkedDataExtractor implements DataExtractor { currentStart = currentEnd; currentEnd = Math.min(currentStart + chunkSpan, context.end); currentExtractor = dataExtractorFactory.newExtractor(currentStart, currentEnd); - LOGGER.trace("advances time to [{}, {})", currentStart, currentEnd); + LOGGER.trace("[{}] advances time to [{}, {})", context.jobId, currentStart, currentEnd); } @Override