Skip to content
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

时间字段只能是unix时间戳格式?毫秒级支持? #1153

Open
Rocky-Li-Adam opened this issue Mar 7, 2024 · 1 comment
Open
Labels
question Further information is requested

Comments

@Rocky-Li-Adam
Copy link

Rocky-Li-Adam commented Mar 7, 2024

日志使用spring boot logback插件方式输出到kafka,但是时间字段只能是字符串或者unix时间戳毫秒级。实际测试毫秒级会直接解析到2106年,字符串格式的插入clickhouse数据库报错。
日志格式:
{
"appName": "integrated",
"time": 1709782160147,
"time": "2024-03-07 11:29:20",
"log": {
"logHostName": "haikui-integrated-service-5fb5985dc7-pw9w4",
"logAppName": "integrated",
"logLevel": "INFO ",
"logTraceId": "",
"logSpanId": "",
"logParentSpanId": "",
"logThread": "main",
"logClass": "c.h.commons.xxljob.config.XxlJobConfig",
"logMsg": ">>>>>>>>>>> xxl-job config init."
}
}

@Rocky-Li-Adam Rocky-Li-Adam added the question Further information is requested label Mar 7, 2024
@Rocky-Li-Adam
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant