Nice idea. I rarely view logs on my local machine, and if I do, they already are in my local TZ. Get it into Debian and Red Hat, then this will be super useful.
Yep, and there's also a --utc flag, but unfortunately no UTC offset flag to do the reverse (on a remote server which perhaps is already using UTC). Could be a good first commit for someone out there...
Oh cool. Didn’t know that. One thing though: I would rather be able to treat logs as files. For example, on occasion I have to download log files from S3 or other servers and analyze a bunch of them. I don’t think journalctl will do that for me.
It's a great idea. But since it's actually not tail at all, but rather a very specific text filter that looks for date strings and translate them (assuming it would work, say, on a file with two timestamps to a line), maybe another name would be better?
I guess this is more "tr for timezones"? So maybe tztr? (time zone translator)?
- https://cr.yp.to/daemontools/tai64n.html
and
- https://cr.yp.to/daemontools/tai64nlocal.html