Dumping request metadata to local port

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Dumping request metadata to local port


I am relatively new to NGINX module development so I apologize if the
question may seem trivial.

I would like to dump data/metadata about certain requests that my nginx
server receives for a certain location/ config. Can I write a module that
creates a regular C udp socket as well as a handler that works as one of the
content phase handlers and dumps the data I want to the localhost port using
the socket.

Is this safe to do in the first place? Is there any other quicker or easier
way to do what I want?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286448,286448#msg-286448

nginx mailing list
[hidden email]