Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Display Web access and error logs
This guide explains how to view and download the Apache logs of your Web Hosting useful for correcting PHP scripts or certain programming errors.
Preamble
- Infomaniak keeps the last 500 error or access displays for a maximum retention period of 10 days.
- It is impossible to perform a prior search even upon request.
- You can also find these logs on the server via FTP in the folder
/ik-logs.
Accessing access and error logs
To display these logs:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product concerned.
- Click on Logs in the left sidebar.
- Click on Errors or Access to display the error log or access log.
- Choose a period if necessary.
- Click on the icon to view the details.
- Click on Send by email to immediately receive all entries by email to your user address.
- Click to export the data in
.logformat:
Identify the most active IP addresses in the access logs
To do this, connect to the server via SSH (need help?).
The line to execute in SSH is as follows:
cat ik-logs/access.log | awk '{ print $2}' | sort -n | uniq -c | sort -n | tail -n 20
Link to this FAQ: