Hacker News new | ask | show | jobs
by jononor 2783 days ago
journalctl does this by default? Already in most Linux distros.
3 comments

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.