-
Notifications
You must be signed in to change notification settings - Fork 21
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
LineLogger NewLineBuf timestamp format #19
Comments
This commit add time_precision option under console section to help customize the `date` attribute in the console log for tcp and udp logger. Fix-bug: #19
@mattaezell , A new build has been uploaded to fix these issues, you could download it from https://github.com/chenglch/goconserver/releases/tag/v0.2.1 . A new option has been added to help customize the time precision, the default value is microsecond.
|
Confirmed. |
Sorry: now that I've had a bit more time to look into this I might need to request a slightly different format. It seems that many programs use ISO 8601 with a We plan to push consoles directly into ElasticSearch and evaluate them using sec ElasticSearch uses |
@mattaezell Do you mean |
@robin2008 At this stage, I'm not sure I could list it as a hard "requirement" (since I can convert formats), but it would certainly make integration with other products easier. |
This commit change all of the time format into RFC8601 format to make it easier to integrate with other tools. partial-issue: #19
@mattaezell , thanks for your advice, a new build to fix this has been uploaded inside the release link https://github.com/chenglch/goconserver/releases/tag/v0.2.1 |
Unfortunately I don't think the current format is correct. I'm seeing Please consider merging #21 Thanks! |
Sorry, I'm not familiar with the time format. The latest build including your patch has been uploaded. |
Thanks @chenglch. Looks good! |
Verified with if still have question against this issue, please don't hesitate to reopen this issue. |
https://github.com/chenglch/goconserver/blob/4415be43710a8eafaa940300b79d4fe4ed8af92b/console/pipeline/logger.go#L26
Many systems use milliseconds (elasticsearch), microseconds, or nanoseconds; but 5 zeros is very uncommon. Consider moving this to 3 or 6. Better yet, allow the format to be customized in the config file.
The text was updated successfully, but these errors were encountered: