Q:非洲食人族的酋长吃什么?

将filebeat日志上传到ES,怎样替换@timestamp为日志时间

Kibana | 作者 shuangshuang | 发布于2019年08月30日 | 阅读数:4959

使用filebeat收集日志,上传到ES,时间为欧洲时间,不能替换为本地时间,再kibana上也没有时间范围产看工具
9038cce9df1913e068a680e61ddac15.png b3edd5dac30a57799e9d49367c522e0.png 7fa8ae5344ac2d6f9a92ac35b78b8ff.png
已邀请:

bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127

赞同来自: shuangshuang

通过配置timezone设置时区,比如"date": {
      "field": "timestamp",
      "formats": ["ISO8601"],
      "timezone": "Asia/Shanghai",
      "ignore_failure": true
    },
    "remove": {
      "field": "timestamp"
    }

要回复问题请先登录注册