Unique key in logs to group all log entries for a single request

Does anyone know of a way to append a unique key to each request in
the logs (all lines for a single request) so they can be grouped and
viewed per request.