We built Gonzo to make log analysis faster and friendlier in the terminal. Think of it like k9s for logs — a TUI that can ingest JSON, text, or OpenTelemetry (OTLP) logs, highlight and boil up patterns, and even run AI models locally or via API to summarize logs. We’re still iterating, so ideas and contributions are welcome!
It is so slow:
$ sudo wc -l /var/log/syslog
4982 /var/log/syslog
$ sudo cat /var/log/syslog | bash -c "time gonzo"
real 6m13,359s
user 6m42,317s
sys 0m28,946s
Six minutes on my virtual machine for 5 thousand lines.
good job, i really like it! it would be awesome to have the ability to integrate it in k9s
that would be cool! Love that idea
i've found out that is possible! with k9s plugins. you need to create a yaml file with the gonzo command you want to launch
the file is `$XDG_CONFIG_HOME/k9s/plugins.yaml`
and here's an example:
plugins:
gonzo-ai:
shortCut: g
description: "Gonzo: AI log analysis"
scopes:
- po
command: sh
background: false
args:
- -c
- "kubectl logs -f $NAME -n $NAMESPACE --context $CONTEXT | gonzo --ai-model=gpt-4"
Nice work! That's awesome
What lib did you use for the TUI part?
Looking at the source they're using bubbletea.
Why call it Gonzo? This is a well-known word in other realms.
—
Or https://en.m.wikipedia.org/wiki/Gonzo_journalism
Or https://en.wikipedia.org/wiki/Gonzo_(company)
Or https://github.com/omeid/gonzo
What's wrong with any of them?
Indeed, I was very confused and thought this had to do with Sesame Street.
Because.. go, and muppets. It's fun. Like gophers are.
I guess there are a few people that first think of porn, but I don't.
[deleted]
[dead]
so would we be gonzo for using it?
You'd be gonzo NOT to
Full Gonzo!!