This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
A guide to the request log lines format. #8436
Merged
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f7f92db
This doc is short but a useful guide to what the request log lines mean.
michaelkaye 222252c
Add changelog
michaelkaye 7ef104c
Apply suggestions from code review
michaelkaye b41f7e7
Update request_log.md
michaelkaye 43e63b2
Update request_log.md
michaelkaye 5accfb8
Update request_log.md
michaelkaye c3e37d9
Address review comments
daenney 1dca7e1
Update request_log.md
richvdh f334da4
Apply suggestions from code review
richvdh 05987e9
Merge remote-tracking branch 'origin/develop' into michaelkaye/docume…
richvdh f1e7d26
Add to new docs site
richvdh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add a new guide to decoding request logs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Request log format | ||
|
|
||
| HTTP request logs are written by synapse (see synapse/http/site.py for details. | ||
|
|
||
| See the following for how to decode the dense data available here. | ||
|
|
||
| ``` | ||
| 2020-10-01 12:00:00,000 - synapse.access.http.8008 - 311 - INFO - PUT-1000- 192.168.0.1 - 8008 - {another-matrix-server.com} Processed request: 0.100sec/-0.000sec (0.000sec, 0.000sec) (0.001sec/0.090sec/3) 11B 200 "PUT /_matrix/federation/v1/send/1600000000000 HTTP/1.1" "Synapse/1.20.1" [0 dbevts] | ||
| -AAAAAAAAAAAAAAAAAAAAA- -BBBBBBBBBBBBBBBBBBBBBB- -C- -DD- -EEEEEE- -FFFFFFFFF- -GG- -HHHHHHHHHHHHHHHHHHHHHHH- -IIIIII- -JJJJJJJ- -KKKKKK-, -LLLLLL- -MMMMMMM- -NNNNNN- O -P- -Q- -RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR- -SSSSSSSSSSSS- -TTTTTT- | ||
| ``` | ||
|
|
||
|
|
||
| | Part | Explaination | | ||
richvdh marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | ----- | ------------ | | ||
| | AAAA | Timestamp request was logged (not recieved) | | ||
| | BBBB | Logger name (usually the same as the python class ) | | ||
michaelkaye marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | CCCC | Line number in code | | ||
| | DDDD | Log Level | | ||
| | EEEE | Request Identifier (This identifier is shared by related log lines)| | ||
| | FFFF | Source IP (Or X-Forwarded-For if enabled) | | ||
| | GGGG | Server Port | | ||
| | HHHH | Federated Server or Local User making request (blank if unauthenticated or not supplied) | | ||
| | IIII | Total Time to process | | ||
| | JJJJ | Time to send response over network once generated | | ||
richvdh marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | KKKK | Userland time | | ||
michaelkaye marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | LLLL | System time | | ||
michaelkaye marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | MMMM | Total time waiting for DB connections | | ||
michaelkaye marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | NNNN | Total time waiting for response to DB queries | | ||
| | OOOO | Count of DB transactions performed | | ||
| | PPPP | Response body size | | ||
| | QQQQ | Response status code | | ||
| | RRRR | Request | | ||
| | SSSS | User-agent | | ||
| | TTTT | Events fetched from DB to service this request | | ||
michaelkaye marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.