• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

taila updated

Frater

Regular Pleskian
Someone once posted an alias 'taila'

'taila' will give you a "following tail" of all the access_log and error_log websites on your Plesk server on the command line.

I thought it was handy, but just found out it didn't work that way in Plesk 11.
Here's a little rewrite which you can put in /root/.bash_aliases

It uses "/usr/local/psa/version" to obtain the Plesk version and if it's not running Plesk it will give you a "normal" Apache2 logtail....


Code:
PLESKVER=`awk -F. '{print $1}' /usr/local/psa/version 2>/dev/null | tr -cd '0-9'`
[ -z "${PLESKVER}" ] && PLESKVER=0

if [ ${PLESKVER} -eq 0 ] ; then
  alias taila='tail -f /var/log/apache2/access.log /var/log/apache2/*/access.log /var/log/apache2/error.log /var/log/apache2/*/error.log'
elif [ ${PLESKVER} -lt 11 ] ; then
  alias taila='tail -f /var/www/vhosts/*/statistics/logs/error_log /var/www/vhosts/*/statistics/logs/access_log'
else
  alias taila='tail -f /var/www/vhosts/*/logs/access_log /var/www/vhosts/system/*/logs/access_log /var/www/vhosts/*/logs/error_log /var/www/vhosts/system/*/logs/error_log'
fi
 
Last edited:
Thanks for sharing this information.
But may I kindly request you to give more info on how and why to use it and the expected results (For those users who would bump on it through search engines)
 
Back
Top