Skip to content

Commit

Permalink
[ML] Use event.timezone in file_structure_finder ingest pipeline (#52720
Browse files Browse the repository at this point in the history
)

This is because beat.timezone was renamed to event.timezone in
elastic/beats#9458
  • Loading branch information
droberts195 committed Feb 25, 2020
1 parent 9b05f6a commit cf122d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand Down Expand Up @@ -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"
]
Expand Down Expand Up @@ -1577,7 +1577,7 @@ this:
{
"date" : {
"field" : "timestamp",
"timezone" : "{{ beat.timezone }}",
"timezone" : "{{ event.timezone }}",
"formats" : [
"ISO8601"
]
Expand Down Expand Up @@ -1743,7 +1743,7 @@ this:
{
"date" : {
"field" : "timestamp",
"timezone" : "{{ beat.timezone }}",
"timezone" : "{{ event.timezone }}",
"formats" : [
"ISO8601"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down

0 comments on commit cf122d1

Please sign in to comment.