Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ISPConfig 3
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 550
    • Issues 550
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 41
    • Merge requests 41
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISPConfig
  • ISPConfig 3
  • Issues
  • #3242

Closed
Open
Created Jul 15, 2014 by Stefano V.@NixLab

Wrong Traffic Calculation - vlogger

Hi,

downloading a ~50mb file with curl and stopping it after few seconds

curl -D - --limit-rate 20k http://example.com/myfile.pdf -o /dev/null

/var/log/apache2/other_vhosts_access.log example.com:80 1.2.3.4 - - [15/Jul/2014:16:27:28 +0200] "GET /myfile.pdf HTTP/1.1" 200 301184 "-" "curl/7.26.0"

/var/log/ispconfig/httpd/example.com/access.log 1.2.3.4 - - [15/Jul/2014:16:27:28 +0200] "GET /myfile.pdf HTTP/1.1" 200 43669812 "-" "curl/7.26.0"

To Vlogger is passed the size of response in bytes (filesize) instead of the real traffic sent, respectly the directive %B instead of %O

vlogger per domain LogFormat "%v %h %l %u %t "%r" %>s %B "%{Referer}i" "%{User-Agent}i"" combined_ispconfig

other_vhosts_access.log LogFormat "%v:%p %h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" vhost_combined

This wrong calculation can have an high impact in presence of a Traffic Quota because with few hundred/thousand of forged requests to a mediumsize file the websites will go easily over traffic and so auto disabled.

Assignee
Assign to
Time tracking