Skip to content

Commit cf122d1

Browse files
committed
[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
1 parent 9b05f6a commit cf122d1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/reference/ml/anomaly-detection/apis/find-file-structure.asciidoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ If the request does not encounter errors, you receive the following result:
315315
{
316316
"date" : {
317317
"field" : "release_date",
318-
"timezone" : "{{ beat.timezone }}",
318+
"timezone" : "{{ event.timezone }}",
319319
"formats" : [
320320
"ISO8601"
321321
]
@@ -702,7 +702,7 @@ If the request does not encounter errors, you receive the following result:
702702
{
703703
"date" : {
704704
"field" : "tpep_pickup_datetime",
705-
"timezone" : "{{ beat.timezone }}",
705+
"timezone" : "{{ event.timezone }}",
706706
"formats" : [
707707
"yyyy-MM-dd HH:mm:ss"
708708
]
@@ -1577,7 +1577,7 @@ this:
15771577
{
15781578
"date" : {
15791579
"field" : "timestamp",
1580-
"timezone" : "{{ beat.timezone }}",
1580+
"timezone" : "{{ event.timezone }}",
15811581
"formats" : [
15821582
"ISO8601"
15831583
]
@@ -1743,7 +1743,7 @@ this:
17431743
{
17441744
"date" : {
17451745
"field" : "timestamp",
1746-
"timezone" : "{{ beat.timezone }}",
1746+
"timezone" : "{{ event.timezone }}",
17471747
"formats" : [
17481748
"ISO8601"
17491749
]

x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/filestructurefinder/FileStructureUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public final class FileStructureUtils {
4343
private static final int KEYWORD_MAX_LEN = 256;
4444
private static final int KEYWORD_MAX_SPACES = 5;
4545

46-
private static final String BEAT_TIMEZONE_FIELD = "beat.timezone";
46+
private static final String BEAT_TIMEZONE_FIELD = "event.timezone";
4747

4848
private FileStructureUtils() {
4949
}

0 commit comments

Comments
 (0)