Home | Forums | Articles | F@H
Help | Search | Members | Calendar | Forum Map | Cybervillage | Archive
Welcome Guest ( Log In | Register | Resend Validation Email )


>  IceTeks Forums -> Technology made cool -> Programming


  Archived - No replies allowed - start new thread insteadStart new topicStart Poll

>  Apache Logs Setup
Track this topic | Email this topic | Print this topic
wldkos
Posted: Jun 11 2003, 01:12 PM
Quote Post

Somebody Set Up Us The Badger!

Group Icon

Group: Crunchers
Posts: 777
Member No.: 101
Joined: 24-February 03
Ice Cubes: 5



i think I need some help setting up my logs. By default they work just fine, by loggin the errors and requests, but i think I want some more info. Is there a way to find out how many hits i am getting or make the logs more/less detailed? i don't think it makes much difference that i am on Linux, since the syntax is the same in the httpd.conf.


What can i do red?


--------------------
PMEmail PosterUsers WebsiteAOL Top
Red Squirrel
Posted: Jun 11 2003, 03:31 PM
Quote Post

ZOMG!

Group Icon

Group: Admins
Posts: 13 964
Member No.: 1
Joined: 18-December 02
Ice Cubes: 163183



Well there's a place in the conf file to decide what you want to log, it's clearly commented there, as for knowing how many hits, you need to use a program such as webalizer which you just install on your host, I never tried it, but I think all you have to do is install it and spefify a log directory.

Just a tip with logs, it's good to rotate them ever so and so, I used to do mine every night. I would just close apache, rename it to jun11-03.log for example and open back apache and it would create a new access.log. That way, if you need to check something, you are not opening a file that is several hundred megs long. Not sure about Linux but I know in windows that's almsot impossible. Once someone hacked into my mail server and I had a 200Meg log file and I never managed to get it open, in note pad it would not let me, and in word pad it would just freeze. Thank goodness I had rotated it for the first time durring the hack attack so I ended up getting the info anyway. I should of kept record of these things, chances are the IP would match the range I always keep an eye out for here. smile.gif

Hope this helps. wink.gif


--------------------
user posted image
http://www.redsquirrel.me my blog
http://www.uovalor.com AoS/ML Ultima Online Shard
PMEmail PosterUsers Website Top
wldkos
Posted: Jun 12 2003, 02:18 PM
Quote Post

Somebody Set Up Us The Badger!

Group Icon

Group: Crunchers
Posts: 777
Member No.: 101
Joined: 24-February 03
Ice Cubes: 5



So every night I would have to restart apache and then rename the log file? Sounds like too much for me. And the webalizer, i can run that off my machine with CGI right?


--------------------
PMEmail PosterUsers WebsiteAOL Top
Red Squirrel
Posted: Jun 12 2003, 03:23 PM
Quote Post

ZOMG!

Group Icon

Group: Admins
Posts: 13 964
Member No.: 1
Joined: 18-December 02
Ice Cubes: 163183



Yeah, webalizer should work from the server. For the logs, you don't have to make them in different files if you don't want, but be warned that you will end up having this HUGE log file, in will reach the GB range in no time.


--------------------
user posted image
http://www.redsquirrel.me my blog
http://www.uovalor.com AoS/ML Ultima Online Shard
PMEmail PosterUsers Website Top
wldkos
Posted: Jun 12 2003, 08:05 PM
Quote Post

Somebody Set Up Us The Badger!

Group Icon

Group: Crunchers
Posts: 777
Member No.: 101
Joined: 24-February 03
Ice Cubes: 5



got ya.


--------------------
PMEmail PosterUsers WebsiteAOL Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Programming | Next Newest »

Topic Options Archived - No replies allowed - start new thread insteadStart new topicStart Poll

 



[ Script Execution time: 0.0340 ]   [ 13 queries used ]   [ GZIP Enabled ]

< Home | Forums | Contact >