【问题标题】:How can I change the AWS WAF log timestamp type from long(number) to date in AWS Elasticsearch?如何在 AWS Elasticsearch 中将 AWS WAF 日志时间戳类型从 long(number) 更改为 date?
【发布时间】:2021-06-21 22:33:17
【问题描述】:

我是使用 AWS WAF、AWS Elasticsearch 的初学者。

我想将 AWS WAF 日志时间戳类型从 long(number) 类型更改为 date 类型。

由于长类型时间戳在 Kibana 可视化和仪表板时间过滤中不起作用。

我在 AWS ES 开发工具上尝试了这个查询代码。

但是,我刚刚收到这条消息。

我该如何解决这个问题?

非常感谢。

【问题讨论】:

    标签: amazon-web-services elasticsearch logging timestamp amazon-waf


    【解决方案1】:

    您会显示您的原始索引查询吗?通过尝试修复此问题,您可能想尝试reindex

    用法:

    POST _reindex 
    {
      "source": {
         "index": "test-timestamps"
       }, 
      "dest": {
         "index": "test-timestamps-2"
       }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-08
      • 1970-01-01
      • 2020-11-04
      • 2020-06-06
      • 2019-03-11
      • 2017-09-22
      • 2020-09-26
      • 2020-02-20
      相关资源
      最近更新 更多