News for hackers. Stuff that matters.
Re:Systemd has been a complete, utter, unmitigated success by scraptor on Wednesday July 09, 2025 @11:29AM (#44511291)
I don't hate journald because it's not plaintext, I hate it because it's worse than plaintext. Somehow journald manages to provide a database which is 40x slower to query than running grep on an uncompressed text file. I'm all in favour of storing logs in an indexed structured format but journald ain't it.
Re:Systemd has been a complete, utter, unmitigated success by mrweasel on Wednesday July 09, 2025 @11:47AM (#44511508)
Journald is an odd one. I don't think it being a binary log/database makes sense. If you have a tiny operation, with a single server, then the binary database doesn't really make sense, having plain text is just easier and faster. If you're a bigger operation, you'll have a central logging solution, in which case you need journald to store the longs as plain text as well, before you can do log shipping.

The only use case where the binary format might make sense is if you ship journald logs to another central journald instance. That's just very much an edge case.

Re:Systemd has been a complete, utter, unmitigated success by akdev1l on Wednesday July 09, 2025 @12:08PM (#44511751)
afaik journald can just forward logs via rsyslog directly to a remote server

Why would it need to store plaintext locally?

Re:Systemd has been a complete, utter, unmitigated success by mrweasel on Wednesday July 09, 2025 @12:45PM (#44512177)
Doesn't that still involve a conversion? I believe that rsyslog can read the journald database, but you're typically not querying syslog data directly, so there's a conversion between rsyslog and logstash, Splunk, Datalog, whatever.
Re:Systemd has been a complete, utter, unmitigated success by NewJazz on Thursday July 10, 2025 @11:29AM (#44522111)
Some folks like having some local storage to act as a buffer in case the remote syslog server is down. Not sure if journald can do that on its own.
Re:Systemd has been a complete, utter, unmitigated success by bombela on Wednesday July 09, 2025 @11:49AM (#44511528)
Even doing zcat | grep is faster than journald.

I now turn off journald and use rotated pain text log files. It's more efficient in all metrics.