PDA

View Full Version : Viewing Apache Log Files


kirupa
Mon 10th Jan '05, 11:19pm
Hey everyone,
I'm wondering how I can access the apache log files for my server? I know the log file is located here: /var/log/httpd/error_log, and I have root access. I know how to get to the command line in PuTTY by logging into the server as root, but I'm lost beyond that.

What would the command be for me viewing/downloading the error_log file?

Thanks!
Kirupa :D

Steve Machol
Tue 11th Jan '05, 12:36am
As root, run:

less /var/log/httpd/error_log

kirupa
Tue 11th Jan '05, 1:44am
Thanks steve :)

buro9
Tue 11th Jan '05, 2:45am
You can find UNIX man (manual) pages for less here:
http://unixhelp.ed.ac.uk/CGI/man-cgi?less

I guess the important thing there is the search thing, if this is in reaction to the announcements :)

I'd also recommend tail for viewing the last X number of lines, and thus seeing the latest requests:
http://unixhelp.ed.ac.uk/CGI/man-cgi?tail