How do I download log files?
On Windows Servers, the log files are kept in the virtual directories /Logs and /FTPLogs within your virtual server root. You will not see the /Logs directory in the directory listing, as it is a hidden directory.
NOTE: FTP logs are available for accounts created after 10/11/2004 only.
To download your log file(s) you need to FTP to your virtual server from the command prompt and execute 'CD /Logs' command (change directory to /Logs) for web server logs and 'CD /FTPLogs' command for FTP logs. This will bring you to log files directories. To view available log files, please use the 'DIR' command. To download log file, please use 'GET' command. To download multiple log files, you need to use the MGET command .
On Linux Servers, please FTP using the special user "logadmin" with the password which you set during account creation.
NOTE: When you change your account password, your "logadmin" user password will not be changed. However, the password for "logadmin" user can be changed in "HostPilot > Web/FTP Server > Ftp Server > FTP Users" section at any time. To view available log files, please use the 'DIR' command. You need to use 'GET' command to download log file or MGET command to download multiple log files.
You can find useful the following log types:
- apache.access_log - Web server access log containing all requests to the server
- apache.error_log - Error log containing all errors encountered by the server
- xferlog - FTP log
- tomcat.log and tomcat.servlet.log - Logs related to JSP
You can configure the log detail level in "HostPilot > Web/FTP Server > Apache Server > Server Settings".
1. Log files are rotated daily.
2. Only log files for the previous and current months are kept on the system. Older log files are deleted.
3. Maximum log files space allocated to one account is 1 GB. If the log files grow larger than the allowed disk allocation, the oldest logs are removed to bring disk usage within limits.