5 comments

  • tonyg 1985 days ago
  • IgorPartola 1985 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.
    • jononor 1985 days ago
      journalctl does this by default? Already in most Linux distros.
      • thegeekpirate 1985 days ago
        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...

        • simcop2387 1985 days ago
          This is probably addressed by seeing the TZ environment variable as needed.
      • IgorPartola 1985 days ago
        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.
      • aswinkarthik93 1984 days ago
        Interesting. Dint know about this. I will check this out.
  • turdnagel 1985 days ago
    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?

    • aswinkarthik93 1984 days ago
      Thank you for the feedback. I will improve on this and put a new GIF.
  • cranjice 1985 days ago
    Cool idea! One nitpick — tail -f and tztail -f should do the same thing
    • aswinkarthik93 1984 days ago
      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!
      • e12e 1984 days ago
        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)?

  • nasredin 1984 days ago
    "tailTZ" for people who use auto-complete or just forget shit.