Massive Nextcloud log file quickly analysed using Python
I ran into a problem with quite a buggy Nextcloud instance on a host with limited quota. The Nextcloud log file would baloon at a crazy rate. So at one point, I snatched a 700 MB sample (yeah, that took maybe an hour or so) and wondered: what's wrong?
So, first things first: Nextcloud's log f
https://bowfinger.de/blog/2025/02/massive-nextcloud-log-file-quickly-analysed-using-python/
@txtechnician Yeah, I'm glad the logs didn't come in XML. But for logging, a little more structure than plain text does make sense, so I'm not blaming the Nextcloud devs for that. A little more tooling would be nice though.
Anyways: I thought this lent itself quite nicely for a compact beginner's tutorial. So there goes...
@cweickhmann
I suppose I'm so used to JSON that I never considered other people might have difficulty reading it.
Aside from CSV, that was the first structure that ever made real sense to me.
In some cases, I have asked chat GPT to build me a website that would be able to parse through JSON so that I could read it in a much more pleasing format.
I've done the same thing with a format called atom. (Xml like)
Because to me, XML structure is the ugliest thing in the world.