from Hacker News

Show HN: Angle Grinder – A terminal app to slice, dice, and aggregate your logs

by rusbus on 7/19/21, 12:18 AM with 21 comments

  • by kreelman on 7/19/21, 4:48 AM

    Something that looks vaguely similar to lnav (and Angle Grinder) is fzf (https://github.com/junegunn/fzf). It's quite good at interactively searching for given items in a pile of text.

    I don't think it does summing "out of the box", but I've found it great for exploring logs (or even very long grep searches) interactively.

  • by smoldesu on 7/19/21, 2:19 AM

    People ask the question "what's Rust good for?" pretty frequently, and little terminal apps like this are precisely the reason. I've written a few of my own in the past, and it enables a kind of workflow that simply didn't exist before: I could have a fully safe, "correct", LLVM-optimized binary installed on my desktop in an afternoon.
  • by depingus on 7/19/21, 4:18 AM

    Interesting. How does this compare to lnav? https://lnav.org/
  • by brainbag on 7/19/21, 3:45 AM

    This is awesome. I've been looking for a tool just like this but didn't want to write it myself. Thank you for sharing!
  • by lathiat on 7/19/21, 6:02 AM

    Looks interesting, as someone in linux support having to remotely analyse logs rather than having a logstash/splunk/grafana/etc UI that I can use directly.. I am in need of tools like this. I will give it a run :)

    EDIT: I had written here that your tool name 'ag' conflicts with "silversearcher-ag" which is a grep replacement and people are likely to be users of both. But your CLI tool name is in fact already 'agrind' just the cargo package is 'ag'. May be worth unifying them to 'agrind'?

  • by mrmincent on 7/19/21, 2:09 AM

    I used to use sumologic in an old job and found it super useful, having a command line tool along the same lines is amazing, thank you!
  • by djmips on 7/19/21, 4:03 AM

    I wish people would come up with unique names for their 'thing' instead of polluting the namespace. ;-)
  • by code-faster on 7/19/21, 7:17 AM

    I really like this tool, but I'm not sure what it gets me more than jq (and https://github.com/tyleradams/json-toolkit to convert non-json to json).

    What can angle grinder do better than jq?

  • by folex on 7/19/21, 1:12 PM

    OMG, I've been dreaming of this tool for years. Thank you!