diff --git a/auditbeat/main.go b/auditbeat/main.go index 48b9086acd2..ff3f400f086 100644 --- a/auditbeat/main.go +++ b/auditbeat/main.go @@ -19,6 +19,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/auditbeat/cmd" ) diff --git a/filebeat/main.go b/filebeat/main.go index b7f128a266f..e6feb5484af 100644 --- a/filebeat/main.go +++ b/filebeat/main.go @@ -19,6 +19,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/filebeat/cmd" inputs "github.com/elastic/beats/v7/filebeat/input/default-inputs" diff --git a/heartbeat/main.go b/heartbeat/main.go index 6218bf00432..a30277c84fe 100644 --- a/heartbeat/main.go +++ b/heartbeat/main.go @@ -19,6 +19,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/heartbeat/cmd" diff --git a/metricbeat/main.go b/metricbeat/main.go index 749ec8001bd..5dcea740b21 100644 --- a/metricbeat/main.go +++ b/metricbeat/main.go @@ -26,6 +26,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/metricbeat/cmd" ) diff --git a/packetbeat/main.go b/packetbeat/main.go index c820e23e323..1f5324d4b4b 100644 --- a/packetbeat/main.go +++ b/packetbeat/main.go @@ -19,6 +19,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/packetbeat/cmd" ) diff --git a/winlogbeat/main.go b/winlogbeat/main.go index 600debc0a55..61828c64c93 100644 --- a/winlogbeat/main.go +++ b/winlogbeat/main.go @@ -26,6 +26,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/winlogbeat/cmd" ) diff --git a/x-pack/agentbeat/main.go b/x-pack/agentbeat/main.go index d567e2eed08..f7c36c2f7d3 100644 --- a/x-pack/agentbeat/main.go +++ b/x-pack/agentbeat/main.go @@ -7,6 +7,7 @@ package main import ( "fmt" "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/libbeat/cfgfile" "github.com/elastic/beats/v7/libbeat/cmd" diff --git a/x-pack/auditbeat/main.go b/x-pack/auditbeat/main.go index d08d6d4c31a..58844e4f641 100644 --- a/x-pack/auditbeat/main.go +++ b/x-pack/auditbeat/main.go @@ -6,6 +6,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/x-pack/auditbeat/cmd" ) diff --git a/x-pack/dockerlogbeat/main.go b/x-pack/dockerlogbeat/main.go index d725d2a46c4..c0735f354b6 100644 --- a/x-pack/dockerlogbeat/main.go +++ b/x-pack/dockerlogbeat/main.go @@ -8,6 +8,7 @@ import ( "fmt" "os" "strconv" + _ "time/tzdata" // for timezone handling "github.com/docker/go-plugins-helpers/sdk" diff --git a/x-pack/filebeat/main.go b/x-pack/filebeat/main.go index 4902d835fe6..bb7606bedb7 100644 --- a/x-pack/filebeat/main.go +++ b/x-pack/filebeat/main.go @@ -6,6 +6,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/x-pack/filebeat/cmd" ) diff --git a/x-pack/functionbeat/main.go b/x-pack/functionbeat/main.go index d6c63e4f709..47c4c10ad4f 100644 --- a/x-pack/functionbeat/main.go +++ b/x-pack/functionbeat/main.go @@ -6,6 +6,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling _ "github.com/elastic/beats/v7/x-pack/functionbeat/include" // imports features "github.com/elastic/beats/v7/x-pack/functionbeat/manager/cmd" diff --git a/x-pack/heartbeat/main.go b/x-pack/heartbeat/main.go index c7bab476499..ce265bd3546 100644 --- a/x-pack/heartbeat/main.go +++ b/x-pack/heartbeat/main.go @@ -6,6 +6,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/x-pack/heartbeat/cmd" ) diff --git a/x-pack/metricbeat/main.go b/x-pack/metricbeat/main.go index 333a0d30fa5..92469da9c17 100644 --- a/x-pack/metricbeat/main.go +++ b/x-pack/metricbeat/main.go @@ -13,6 +13,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/x-pack/metricbeat/cmd" ) diff --git a/x-pack/osquerybeat/main.go b/x-pack/osquerybeat/main.go index ee2d6597729..570f848729e 100644 --- a/x-pack/osquerybeat/main.go +++ b/x-pack/osquerybeat/main.go @@ -6,6 +6,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/x-pack/osquerybeat/cmd" ) diff --git a/x-pack/packetbeat/main.go b/x-pack/packetbeat/main.go index 6ae71ec15c2..f6f55b6d25b 100644 --- a/x-pack/packetbeat/main.go +++ b/x-pack/packetbeat/main.go @@ -6,6 +6,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/x-pack/packetbeat/cmd" ) diff --git a/x-pack/winlogbeat/main.go b/x-pack/winlogbeat/main.go index 21fd70be7f6..1ca2aa11a31 100644 --- a/x-pack/winlogbeat/main.go +++ b/x-pack/winlogbeat/main.go @@ -6,6 +6,7 @@ package main import ( "os" + _ "time/tzdata" // for timezone handling "github.com/elastic/beats/v7/x-pack/winlogbeat/cmd" )