Hacker News new | ask | show | jobs
by IgorPartola 2783 days ago
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.
1 comments

journalctl does this by default? Already in most Linux distros.
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...

https://github.com/systemd/systemd/search?q=format_timestamp...

This is probably addressed by seeing the TZ environment variable as needed.
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.
Interesting. Dint know about this. I will check this out.