Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Tztail – View logs in the timezone you want (github.com/thecasualcoder)
53 points by aswinkarthik93 on Nov 10, 2018 | hide | past | favorite | 13 comments




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.


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.


This 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?


Thank you for the feedback. I will improve on this and put a new GIF.


Cool idea! One nitpick — tail -f and tztail -f should do the same thing


Thank 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!


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)?


"tailTZ" for people who use auto-complete or just forget shit.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: