From ca80ad69f222152e7525d64995b79ae9b60a8000 Mon Sep 17 00:00:00 2001 From: David Roberts Date: Tue, 25 Feb 2020 12:18:53 +0000 Subject: [PATCH] [ML] Use event.timezone in file_structure_finder ingest pipeline (#52720) This is because beat.timezone was renamed to event.timezone in elastic/beats#9458 --- .../anomaly-detection/apis/find-file-structure.asciidoc | 8 ++++---- .../xpack/ml/filestructurefinder/FileStructureUtils.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/reference/ml/anomaly-detection/apis/find-file-structure.asciidoc b/docs/reference/ml/anomaly-detection/apis/find-file-structure.asciidoc index 0a1b2aaefef80..f5173ab504e99 100644 --- a/docs/reference/ml/anomaly-detection/apis/find-file-structure.asciidoc +++ b/docs/reference/ml/anomaly-detection/apis/find-file-structure.asciidoc @@ -315,7 +315,7 @@ If the request does not encounter errors, you receive the following result: { "date" : { "field" : "release_date", - "timezone" : "{{ beat.timezone }}", + "timezone" : "{{ event.timezone }}", "formats" : [ "ISO8601" ] @@ -702,7 +702,7 @@ If the request does not encounter errors, you receive the following result: { "date" : { "field" : "tpep_pickup_datetime", - "timezone" : "{{ beat.timezone }}", + "timezone" : "{{ event.timezone }}", "formats" : [ "yyyy-MM-dd HH:mm:ss" ] @@ -1577,7 +1577,7 @@ this: { "date" : { "field" : "timestamp", - "timezone" : "{{ beat.timezone }}", + "timezone" : "{{ event.timezone }}", "formats" : [ "ISO8601" ] @@ -1743,7 +1743,7 @@ this: { "date" : { "field" : "timestamp", - "timezone" : "{{ beat.timezone }}", + "timezone" : "{{ event.timezone }}", "formats" : [ "ISO8601" ] diff --git a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/filestructurefinder/FileStructureUtils.java b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/filestructurefinder/FileStructureUtils.java index 14df58a35ce8f..6807dfd8e4b33 100644 --- a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/filestructurefinder/FileStructureUtils.java +++ b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/filestructurefinder/FileStructureUtils.java @@ -43,7 +43,7 @@ public final class FileStructureUtils { private static final int KEYWORD_MAX_LEN = 256; private static final int KEYWORD_MAX_SPACES = 5; - private static final String BEAT_TIMEZONE_FIELD = "beat.timezone"; + private static final String BEAT_TIMEZONE_FIELD = "event.timezone"; private FileStructureUtils() { }