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 Apache logs from Web Hosting, which are useful for analyzing PHP errors or diagnosing certain application behaviors.
Preamble
- The access and error logs are kept for at least 7 days.
- Once the retention period has expired, older entries cannot be restored, even upon request.
- You can also find these files directly on the server via SSH/FTP in the
ik-logsfolder at the root of your hosting.
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 in question.
- 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: