logstash时间戳转换为unix 纳秒nano second time
filter {
ruby {
code => "event.set('unix_nano_time',(event.get('@timestamp').to_f.round(9)*1000*1000*1000).to_i)"
}
}
然后在配置中取出unix_nano_time即是:
"%{unix_nano_time}"
logstash时间戳转换为unix 纳秒nano second time
filter {
ruby {
code => "event.set('unix_nano_time',(event.get('@timestamp').to_f.round(9)*1000*1000*1000).to_i)"
}
}
然后在配置中取出unix_nano_time即是:
"%{unix_nano_time}"
暂无评论
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14