Ideas for programs that don't exist: 2
This is a new occasional series of posts where I will share ideas for programs that don't exist, but should. The goal is to inspire developers to create useful tools that can make our lives easier. Or, more likely, to remind me about these ideas so I can create them myself. Or even more likely, to just get them out of my head so I can stop thinking about them.
Idea 2: A nice web frontend for journald
I do some self hosting. It's tempting, when you self-host, to run things as if it was a company's production setup. So, there are some who run multiple large servers on kubernetes and so on.
Not me, I run a single SBC with a bunch of dockerized services.
So, how do I see logs if something goes wrong?
Well, I log to the system's journal, so I can use journalctl
to see the logs.
It's just this bit of YAML in your composer definition:
logging:
driver: "journald"
options:
tag: "whatever"
That tags the logs from that container with "whatever". So, I can run:
journalctl -t whatever
This tool, journalctl
is quite nice, and you can filter by date, grep for things,
follow the live logs, and so on. But it's a command line tool, which I like.
But the ¨do it like a real prod thing"crowd uses logstash or somesuch, and have a web dashboard for this kind of things.
Well, I should have one of those too, but backed by journalctl
There is one that comes with systemd, but it's sort of crappy, and there is no reason for it to be. It's running in the same server where the logs are, it's simple, and it would be a nice little project to do.