What is domainlog?
Domain logs provide several logical views of domain-level activities involving packages, MBOs, users, devices, operations, and subscriptions. Domain administrators use this data to monitor and troubleshoot activity within an individual domain. However, only a platform administrator can configure domain log properties. The domain logging option must be enabled on the domain or for package-level logging to start.
Path to domlogs:
/usr/local/apache/domlogs/
How to find domain log for particular domain?
To find domain logs and access logs:
cd /usr/local/apache/domlogs/
Then
sudo ls -la | grep domain-name.com (replace domain for which you wish to get access/dom logs)
Then
sudo cat domain-name.com
or
sudo tail -f domain-name.com | awk ‘{print $1, $2}’ OR sudo tail -f addon.domain-name.com | awk ‘{print $1, $2}’
(All new log will be updated on the tail of the page. So, the tail -f command will show updated domlogs/accesslogs)
To find Error Logs in Apache.
tail -f /var/log/httpd/error_log | grep username*
OR
tail -f /var/log/httpd/error_log (for complete server)
Path to Global Log:
sudo tail -5000 /var/log/domlogs/global_log
Global log is for the whole server users.
Find USERID for an username:
id -u username
or
id -u hosting-user
Find Jailed users RAM/CPU usage:
sudo inotail -f /var/log/cpud | grep uid=34051
Let me know if you have any questions!
Comments are closed