看,灰机...

LogStash @timestamp 是否可以精确到微秒

Logstash | 作者 weining | 发布于2020年01月15日 | 阅读数:2139

默认的时间 "@timestamp" => 2020-01-15T09:44:19.591Z,
请问是否可以设置为"@timestamp" => 2020-01-15T09:44:19.591123Z,
精确到微秒
已邀请:

dadaball

赞同来自: tacsklet

ES 從7.x開始 有多一個納秒的型態,可以參考官方網站
 
https://www.elastic.co/guide/e ... .html
 
PUT my_index?include_type_name=true
{
  "mappings": {
    "_doc": {
      "properties": {
        "date": {
          "type": "date_nanos" 
        }
      }
    }
  }
}
 

tacsklet - 公司有用到es

赞同来自:

据我所知只能到毫秒,微秒可以自己建个字段作为数字存储使用呀。

wangguoqing - 10后IT难

赞同来自:

最新版已经支持了

要回复问题请先登录注册