@@ -56,13 +56,7 @@ Access Token:\<click to reveal\>
How can I find the lines corresponding to a given HTTP request in my homeserver log?
---
Synapse tags each log line according to the HTTP request it is processing. When it first receives a request, it logs a line containing the words `Received request: `. For example:
```
2019-02-14 22:35:08,022 - synapse.access.http.8008 - 233 - INFO - GET-37 - ::1 - 8008 - Received request: GET /_matrix/client/r0/sync
```
Once it finishes processing the request, it logs another line with the words `Processed request: `. For example:
Synapse tags each log line according to the HTTP request it is processing. When it finishes processing each request, it logs a line containing the words `Processed request: `. For example:
@@ -83,9 +77,9 @@ What do all those fields in the 'Processed' line mean?
The log format can vary slightly depending on your log configuration, but here is a breakdown of the example above:
* `2019-02-14 22:35:08,196`: date/time when we finished processing the request
* `synapse.access.http.8008`: logger name. For 'Received'/'Processed' lines, the logger name is `synapse.access.http.` plus the TCP port that the request came in on
* `302`: the line number where the request was logged. Useless for 'Received'/'Processed' lines.
* `INFO`: the log level. Always `INFO` for 'Received'/'Processed' lines.
* `synapse.access.http.8008`: logger name. For 'Processed' lines, the logger name is `synapse.access.http.` plus the TCP port that the request came in on
* `302`: the line number where the request was logged. Useless for 'Processed' lines.
* `INFO`: the log level. Always `INFO` for 'Processed' lines.
* `GET-37`: the request tag
* `::1`: the client IP address
* `8008`: the TCP port where the request came in (again)