How to find the log files?

Asked By 30 points N/A Posted on -
qa-featured

Recently I had finished a technical interview. In that I had asked questions on what is apache server error log? How to find the log files? Could you help me with this?

SHARE
Best Answer by Malesh Hoti
Answered By 10 points N/A #329702

How to find the log files?

qa-featured
  • Apache Server error log is a file which stores the information when user encounters any errors while working.
  • For example, a user requesting a file which does not exist.
  • The server error log file is set by the directive, ErrorLog where the Appache http directive will be sending the information record that occurs while processing any requests.
  • In windows the errol log is stored under error.log file.
  • Example of error log is as shown below
  • [Wed Jan 18 14:32:52 2019] [error] [client 127.0.1.1] user denied by server configuration: /export/home/track/aps/htdocs/test.

 

Most of the error message contains the date and time when the error occurred, client or user IP address etc.

Login/Register to Answer

Related Questions