Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can customize the log format from Apache. I highly recommend it!


And it luckily has a journald module, which actually can log some fields in a structured manner. But even that doesn't seem to go far enough according to the docs.

Eg, maybe I want structured logging for the HTTP headers. No way to get that at present, as far as I can tell.


Sounds like systemd stuff. Why deal with systemd. Use Apache customized logging as the parent comment suggested.


> Sounds like systemd stuff. Why deal with systemd.

Because it's better. Because it logs stuff separated by field, doesn't have problems with unusual characters or newlines, supports cursors, deals internally with log rotation and compression, a whole bunch of cool stuff.

> Use Apache customized logging as the parent comment suggested.

That's exactly what I want to avoid, for reasons explained in my original comment.


Because if you know you need a third value from the logs with ID NNN then you would always receive the third value from NNN message and nothing else. And no regex and locales shenanigans.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: