Updated Home (markdown)

master
Richard van der Hoff hace 4 años
padre
commit
2b948d5ae6
Se han modificado 1 ficheros con 4 adiciones y 10 borrados
  1. +4
    -10
      Home.md

+ 4
- 10
Home.md

@@ -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:

```
2019-02-14 22:35:08,196 - synapse.access.http.8008 - 302 - INFO - GET-37 - ::1 - 8008 - {@richvdh:localhost} Processed request: 0.173sec/0.001sec (0.002sec, 0.000sec) (0.027sec/0.026sec/2) 687B 200 "GET /_matrix/client/r0/sync HTTP/1.1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36" [0 dbevts]"
@@ -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)


Cargando…
Cancelar
Guardar