I have a bunch of Apache log files that I would like to analyze. I'm looking for a tool that doesn't require much setup; something that I can run a log through the command line, without messing around on our live web servers.

Any recommendations?

link|improve this question

25% accept rate
And the OS you're going to be using is... – Izzy May 6 '10 at 19:53
Linux or MacOSX... – mmattax May 6 '10 at 20:07
1  
"Analyze" doesn't say much. What are you trying to do? Look for a string, crunch numbers? – David May 6 '10 at 20:37
feedback

6 Answers

wtop is cool. There's other utilities as well. Often, I'll parse logs using bash, sed, and awk.

link|improve this answer
feedback

What sort of output do you want?

If you are you just looking to count things then grep something logfile.txt | wc -l works great. If you want pretty graphs... not so much.

link|improve this answer
For windows the find command mimics grep to some degree. – Chris Nava May 6 '10 at 20:12
feedback

if you have a windows workstation that you can use then logparser is the tool of choice!

link|improve this answer
feedback

analog works well out of the box and doesn't require a lot of setup. logwrangler is a package that works with analog to generate nicer output and also requires little setup.

link|improve this answer
feedback

Instead of using a command line tool I would suggeset to try Apache Logs Viewer. It's a free tool which can monitor and analyze the Apache Log File. It can generate some pretty cool graphs and reports on the fly.

More info from http://www.apacheviewer.com

link|improve this answer
feedback

apachetop is pretty cool; it prints live statistics. You run it with

apachetop -f /var/log/apache2/www.mysite.com.access.log

To install it in Debian/Ubuntu:

apt-get install apachetop

or from source: https://github.com/JeremyJones/Apachetop

There is also an interesting script in http://www.intuitive.com/wicked/84-exploring-apache-access_log-shell-script.shtml

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.