• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • 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.
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