• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.
Resource icon

Instruction How to find the busiest web site

Hi,

as oorexx is not part of any enterprise repo (see https://pkgs.org/search/?q=oorexx ) and also Rexx is not spread very much nowadays, I rebuilt it a litte to a one liner without usage of Rexx.

This line to sort by number of log entries (which is more meaningful I guess):
wc -l `find /var/www/vhosts/system/ -name access_*log -o -name access_*log.processed` | sort -nr | head -n 50

Or this line to sort by size like the original script above:
wc -c `find /var/www/vhosts/system/ -name access_*log -o -name access_*log.processed` | sort -nr | head -n 50

For distributions where wc does not repeat the filename, you could also do something like this:
find /var/www/vhosts/system/ -name access_*log -o -name access_*log.processed | xargs -i sh -c 'lines=$(wc -l {}); printf "$lines {}\n"'
Thanks for the code
better change first line to include ssl logs and see only on "system" directory where had to be all domains logs.

find /var/www/vhosts/system -name access_*_log | rxqueue
sweet code
Great!
Back
Top