5 ms·
Show HN: Tztail – View logs in the timezone you want
- IgorPartola 8y agoNice 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.
- jononor 8y agojournalctl 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.
- tonyg 8y agoSee also: - https://cr.yp.to/daemontools/tai64n.html https://cr.yp.to/daemontools/tai64n.html and - https://cr.yp.to/daemontools/tai64nlocal.html https://cr.yp.to/daemontools/tai64nlocal.html
- cranjice 8y agoCool idea! One nitpick — tail -f and tztail -f should do the same thing
- aswinkarthik93 8y agoThank you for the feedback. It makes sense to not conflict with tail flags. The follow feature is not there as well. Will work on these. Thanks a lot!
- e12e 8y agoIt'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)?
- turdnagel 8y agoThis is really cool. Small, rather nitpicky feedback on your demo GIF - maybe try to record a "take" where you don't make any typing mistakes?
- aswinkarthik93 8y agoThank you for the feedback. I will improve on this and put a new GIF.
- nasredin 8y ago"tailTZ" for people who use auto-complete or just forget shit.