4 ms·
journalctl does this by default? Already in most Linux distros.
by jononor 8y ago
journalctl does this by default? Already in most Linux distros.
- IgorPartola 8y agoOh 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.
- deleted 8y ago[deleted]
- thegeekpirate 8y agoYep, 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_utc&type=Code https://github.com/systemd/systemd/search?q=format_timestamp...
- simcop2387 8y agoThis is probably addressed by seeing the TZ environment variable as needed.
- aswinkarthik93 8y agoInteresting. Dint know about this. I will check this out.