RoadRunner has the HTTP access logs support, which provides detailed information about incoming HTTP requests and responses.
Note
This feature is disabled by default, but it can be easily enabled by configuring the HTTP server.
To enable HTTP access logs in RoadRunner, you need to modify the configuration file of the HTTP server.
Here's an example configuration file:
version: "3"
http:
address: 127.0.0.1:8000
access_logs: true
# ...
Once enabled, RoadRunner will log the following information for each incoming HTTP request:
method
- HTTP method of the requestremote_addr
- Remote address of the clientbytes_sent
- Content length of the responsehttp_host
- Host name of the serverrequest
- Query string of the requesttime_local
- Local time of the server in Common Log Formatrequest_length
- Request body size including headers in bytes (content-len + size of all headers) in bytes. Max allowed headers
size for the RR is 1MB.request_time
- Request processing time in seconds with a milliseconds' resolutionstatus
- HTTP response statushttp_user_agent
- HTTP user agent agent string of the clienthttp_referer
- HTTP referer string of the client