Web Hosting Talk







View Full Version : Question about access-log


Cyphix
06-27-2002, 02:12 PM
I have an account with a hosting company but am wondering if you can find out your path to your access-log with telnet somehow?

I have a weblog program that I want to use which I have used before on other servers & it asked for the name to my access-log.

On the other servers I used to give it the path to a dir called "access-log"; in FTP the icon for that dir was a normal folder icon with another small image on top of the folder. What's that mean?

On this server I can't seem to find one, all I can locate is a logs folder containg a subfolder with several .gz files with all my info in them. (referers, errors etc).

Btw, they use Apache.

I found this info while reading some info for a logging program & was wondering does this have anything to do with it?

>>>>>>>
* Configure your apache web server to have NCSA combined/XLF/ELF log format (you can use your own log format but this predefined logformat is often the best choice and made setup easier). You can do this by changing, in httpd.conf, following directives (See your apache manual for more information):
CustomLog /yourlogpath/yourlogfile common
into
CustomLog /yourlogpath/yourlogfile combined

To be sure the log format change is effective, you can stop Apache, remove all old log files, restart Apache and go to your homepage. This is an example of records you should get then in the new log file:
62.161.78.75 - - [dd/mmm/yyyy:hh:mm:ss +0000] "GET / HTTP/1.1" 200 1234 "http://www.from.com/from.html" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
<<<<<<<

That info above came from a logging program but not the one I wanted to use on my website....the one I want to use is called "Weblog" by Darryl C. Burgdorf (http://awsd.com/scripts/weblog/index.shtml).

Thanks for any help.

apollo
07-06-2002, 03:36 PM
On this server I can't seem to find one, all I can locate is a logs folder containg a subfolder with several .gz files with all my info in them. (referers, errors etc).

You just found your log files! They are only compressed to save the space on the web server hard drive.

There are two ways to uncompress these files:

1.) If you have telnet/ssh access, execute
cd logs
gunzip log_file_name.gz

2.) or you can download all *.gz files to your local workstation hard drive (via ftp) and double-click on them. Winzip should open if you have it installed (www.winzip.com).

Then, you can run your web statistics software to generate web site statistics in more readable format (I suggest, analog or webalizer)

hope this helps you a bit