-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
存量 Flusher 支持纳秒级日志时间 #1164
Comments
开发指南时间处理插件(e.g. if p.context.GetPipelineScopeConfig().EnableTimestampNanosecond {
protocol.SetLogTimeWithNano(log, uint32(parsedTime.Unix()), uint32(parsedTime.Nanosecond()))
} else {
protocol.SetLogTime(log, uint32(parsedTime.Unix()))
} 通过 在flusher阶段,采集到的日志需要转换成对应数据源的数据格式。因此,可以在convertor将日志从iLogtail的Log转换成数据源格式时,将纳秒时间填充到对应的字段。 ilogtail/pkg/protocol/converter/otlp.go Lines 85 to 89 in 6827f19
开发注意点在开发过程中,需要注意以下几点:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #1098
Originally posted by Abingcbc August 29, 2023
iLogtail 从 v1.7.0 开始,提供了对日志时间进行纳秒级精度解析的支持。对于每一个 flusher,需要将解析得到的纳秒时间保存到指定的字段,然后再将日志 flush 到下游。
每个 flush 如何处理纳秒级的时间都有自己的方法。欢迎社区成员一起参与完成对 flusher 的升级改造。
The text was updated successfully, but these errors were encountered: