-
Notifications
You must be signed in to change notification settings - Fork 484
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
Show message timestamp as UTC ISO8601 format #189
Comments
That does make sense. As a workaround you can use jq to reformat the timestamp: https://stackoverflow.com/questions/36853202/jq-dates-and-unix-timestamps |
I have done a quick change #216 to display human readable form next to epoch. You can build it from https://github.com/wkujawa/kafkacat Example for format 'Timestamp: %T': It should be new format specifier but that way is good for me. Feel free to do whatever you like with it. I can also modify it further. |
Example of the workaround mentioned by @edenhill:
Edit: fixed according to the comments directly below |
@fletchgqc @edenhill Thanks a lot. btw. you probably meant |
For anyone who, like me, has trouble seeing the difference: the original comment by @fletchgqc erroneously uses
|
Although I think currently the
%T
format string token just prints the unix epoch timestamp as read from kafka, for quick debug purposes it would be very useful to have a timestamp in more readable format, for example ISO8601 in UTC. Currently I have to copy paste the timestamps to a converter in order to make sense of it.If there already is an alternative I'm happy to hear about it!
The text was updated successfully, but these errors were encountered: