HTTP logging and debugging #19

Open
opened 2026-05-23 22:10:54 -04:00 by chipmunkmc · 2 comments
Owner

So the log files in /var/log/nginx are currently not rotated in any way, making them hell to look through for anything useful.
In addition, it's currently hard to see the entire contents of requests, for the sake of maintaining filters (see #9 and #17).
Last but not least, it's also really annoying to debug said filters and fix logic errors at the moment. I could perhaps write a test suite... except I'm lazy.

So the log files in `/var/log/nginx` are currently not rotated in any way, making them hell to look through for anything useful. In addition, it's currently hard to see the entire contents of requests, for the sake of maintaining filters (see #9 and #17). Last but not least, it's also really annoying to debug said filters and fix logic errors at the moment. I could perhaps write a test suite... except I'm lazy.
Author
Owner

So I currently have a hacky way to do this however it affects the entire nginx server which is not ideal. This can lead to me logging a bunch of info I don't need (logs waste disk space, could be breached if I'm unlucky, and could be abused too if I were evil enough).

So I currently have a hacky way to do this however it affects the *entire* nginx server which is not ideal. This can lead to me logging a bunch of info I don't need (logs waste disk space, could be breached if I'm unlucky, and could be abused too if I were evil enough).
Author
Owner

I can also use tcpdump for specific services, however this won't let me see the exact headers (including Connection) or HTTP version from the original client.

I can also use `tcpdump` for specific services, however this won't let me see the *exact* headers (including `Connection`) or HTTP version from the original client.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
chipmunk.land/misc#19
No description provided.