Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

Wednesday, 12 October 2011

Top Command Line Tips: Apache Access Log

I said I should do some top command line tips. So I thought I'd start with some useful Apache access log monitoring and analysis commands.
These can come in useful if odd things are happening on your websever and maybe you think there are dodgy spiders or your need to only see requests from your IP, that kind of thing.

Assumptions
I'm assuming the path to your access log is /var/log/apache/access.log. So adjust if it's different.
Also assuming your access file's LogFormat is 'combined' and that you actually have permission to view the logs.

Commands Overview
Commands and options we'll be using are: