Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

时区问题 #18

Open
yisiliang opened this issue Oct 15, 2020 · 0 comments
Open

时区问题 #18

yisiliang opened this issue Oct 15, 2020 · 0 comments

Comments

@yisiliang
Copy link

我现在用的7.9.2版本的logstash,时区可以这样处理,来把这个时间改成上海也就是东八区。

很多中国用户经常提一个问题:为什么 @timestamp 比我们早了 8 个小时?怎么修改成北京时间?

filter {
  date {
    timezone => "Asia/Shanghai"
    match  => [ "logTime", ISO8601 ]
    target => "logTime"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant