Client send to server a custom header. Structure, send a deviceid header to machine. In nginx, we capture this header and write toaccesslog for debug, keep track of, route request. We need to config nginx that:Enable underscores directive in http selection.Set header to a variable (if header is customheader , adjustable is definitelyhttp +customheader Re-config log structure in nginx config Send a demand with custom header |