The requested URL was not found on this server. 不管你信不信,反正我是没找到

logstash 如何将一个时间戳字段 ,转换一个新字段仅包含:年月日,

Logstash | 作者 auroracxy | 发布于2016年06月06日 | 阅读数:6714

我的日志中有一个字段datetime值是:1465071797
date -d @1465071797
Sun Jun 5 04:23:17 CST 2016
 
我想将新增一个字段new_field,值为:2016-06-05
如何能实现?
已邀请:

joeywen

赞同来自:

使用filter中使用date ,
[url=https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html]https://www.elastic.co/guide/e ... .html[/url]
 
可以到stackoverflow中搜索各种关于date parse的问题
 

要回复问题请先登录注册