• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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