Dumping request metadata to local port

roshansh nginx-forum at forum.nginx.org
Wed Dec 11 19:32:38 UTC 2019


Hi, 

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



More information about the nginx mailing list