Grafito: a journald web frontend

I started this as sort of a joke (Grafito is like Grafana, but chiquitito) and it turned out to be a fairly useful little tool!

Basically: it exposes your linux’s logs via web, with a nice, simple UI.

Just a few hundred lines of Kemal and HTMX, I expect it to get some users from the r/selfhosted crowd after I polish it a bit more

10 Likes

A couple more days and it’s now pretty feature complete, looks nicer and has a website: https://grafito.ralsina.me

2 Likes

Now with a live demo (all-fake data courtesy of GitHub - askn/faker: Faker is a Crystal library that generates fake data for you and a compile-time flag)

2 Likes

Hi @ralsina, I think the application will be useful. For example, I tried to use it as a lightweight solution for serving logs of an application deployed as a rootless podman container, and it mostly worked. Do you think it is possible to add OpenID Connect authentication with PKCE? I mean, redirecting an unauthenticated user to a configured provider, for example, Keycloak, then verifying the GWT token they got?

Sure it’s possible but why?

In any case, that sort of thing should be a shard.

I believe with more advanced authentication, the program will be more usable in enterprise projects.

Enterprise projects probably use datadog or (if they are running it in house) logstash.