question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding timezone support in ECS

See original GitHub issue

ECS is currently missing timezone support.

We used to have fields where the value should be defined as a differential in seconds, which we agreed to remove, as it was not very friendly (device.timezone.offset.sec and host.timezone.offset.sec).

In order to re-introduce the timezone, we need to pick a field name, and what values we support in there.

Fun facts:

  • Beats can either output:
    • a time differential in hh:mm format (e.g. -05:00)
    • or in abbreviated form (e.g. EST).
  • Ingest Node supports at least 3 input formats:
    • time differentials in hh:mm format
    • abbreviated timezones
    • canonical timezones (e.g. Europe/Amsterdam)
  • Logstash’s date filter supports 2 formats, according to the docs:
    • time differentials in hh:mm format
    • canonical timezones (e.g. Europe/Amsterdam)

Here are a few questions that could help shape the direction here:

  • Can someone confirm whether Beats emits the correct time differential immediately after DST changes?
  • Should we limit which format goes into the timezone field to only one format, or let people use their preferred format, as long as it’s one of the 3?
  • What field name(s) seem more appropriate?

@MikePaquette @ruflin @andrewkroh

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ruflincommented, Dec 7, 2018

You mean event.timezone?

0reactions
webmatcommented, Dec 7, 2018

Awesome. Will get that going shortly. I agree with event.timestamp

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS ECS Fargate task timezone - Stack Overflow
To set the required Timezone in your Containers you can set the Timezone in your Dockerfile using tzdata and create a new Image....
Read more >
Setting a specific timezone in AWS Fargate | by Axel Hodler
A list of timezones can be found here. The alternative is to set it on the container by adding the following. The example...
Read more >
Changing the Time Zone for an ECS - 华为云
Log in to the ECS. · Click the time display on the far right side of the task bar located at the bottom...
Read more >
Changing the Time Zone for an ECS — Elastic Cloud Server
Log in to the ECS. · Click the time display on the far right side of the task bar located at the bottom...
Read more >
Set the Time Zone - AWS Elemental Server
On the AWS Elemental Server web interface, go to the Settings page and choose General. In Timezone, choose your required time zone. Choose...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found