When something goes wrong with a website or application, the first question is often: what's causing the problem?
Sometimes the answer isn't immediately obvious.
That's where server and application logs can help.
What are logs?
Logs are records generated by servers, websites and applications as they operate.
Depending on the system and its configuration, they can record activity such as requests, errors, authentication events and application processes.
These records can provide useful information when investigating problems.
Common types of logs
Access logs
Record requests made to a web server, including information such as the requested resource, response status and request time.
Error logs
Record errors encountered by a web server or application, helping administrators investigate problems.
Application logs
Provide information about activity within an application, including failures and other events recorded by the software.
Security logs
Can help identify suspicious activity, failed authentication attempts and other security-related events.
Why are logs important?
Imagine a website occasionally displays a 500 Internal Server Error.
Without logs, you might only know that the website isn't working properly.
By reviewing the relevant records, you may be able to identify a particular script, database problem or configuration issue associated with the failure.
Logs can also help identify patterns, such as repeated requests to an unavailable page or unusually high numbers of failed login attempts.
A word on security and privacy
Logs can contain sensitive information, including IP addresses and details about user activity.
They should be protected with appropriate access controls, retained only as necessary and managed in line with applicable data protection requirements.
Avoid recording passwords, authentication tokens or unnecessary personal information.
Our advice
When reporting a technical issue, try to include the time it occurred, what you were doing and any error message displayed.
These details can make it much easier for a support team to identify the relevant log entries and investigate the problem.
The Response Systems Team