Opened 2 years ago

Last modified 2 years ago

#2767 new change

Log the size of the response body

Reported by: Kirill Assignee: matze
Priority: P3 Milestone:
Module: Infrastructure Keywords: serverlogs, nginx
Cc: trev, fhd, fred Blocked By: #2769, #2770
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description (last modified by matze)

Background

In the server logs we log the size of the body and the header. This makes it difficult to make an analysis on the amount of canceled downloads e.g.
If we would also log the body size the estimations would be much preciser. A nice side benefit: If we log both body and body+head sizes, we could make interesting analyses, e.g. trying to recognize bots...

What to change

Add response body size to serverlogs. Change the nginx configuration accordingly.
Ensure, that the stats-processing will not be corrupted by the new logs format.

Overview


Change History (9)

comment:1 Changed 2 years ago by matze

  • Cc matze added
  • Owner matze deleted
  • Priority changed from P2 to P3

comment:2 Changed 2 years ago by matze

  • Blocked By 2769 added

comment:3 Changed 2 years ago by matze

  • Blocked By 2770 added

comment:4 follow-up: Changed 2 years ago by trev

You are consistently writing "request body" - but it seems that you really mean "response body"?

comment:5 in reply to: ↑ 4 Changed 2 years ago by Kirill

Replying to trev:

You are consistently writing "request body" - but it seems that you really mean "response body"?

Yeah, you're right, mixed the wording, will fix it in description.

comment:6 Changed 2 years ago by Kirill

  • Description modified (diff)
  • Summary changed from Log the size of the request body to Log the size of the response body

comment:7 Changed 2 years ago by matze

  • Description modified (diff)

comment:8 Changed 2 years ago by matze

  • Owner set to matze

comment:9 Changed 2 years ago by matze

  • Cc fhd fred added; matze removed
Note: See TracTickets for help on using tickets.