mgaccesslog 2.0

PHP script for a professional analysis of the access.log

In German. Imprint

In several days of sweaty work, Max R. P. Grossmann has developed many intelligent algorithms to make mgaccesslog as reliable and smart as possible. Preceeded by a long disappointment about other log analyzers, Grossmann decided to make it even better. The result is maybe one of the most trustworthy free access.log "decrypters" which is also free software. Try mgaccesslog for yourself - it will not disappoint your high standards.

mgaccesslog can:

And the best thing: mgaccesslog is completely free and also free software! You may use mgaccesslog for any purpose you need. Improve mgaccesslog - I would like it. For more information, see the license of mgaccesslog.

Download

mgaccesslog 2.0

Usage

You can now call mgaccesslog on your own server! Just upload it, and set ?log=[FILE]!

Using mgaccesslog is very simple. Simply place the PHP script in the same folder as your downloaded access.log. You will also need an installed PHP, version 5.3 or higher. This is available on php.net. And then the fun begins! Give the script just the file name. This might look like this:

php mgaccesslog.php access.log

Where mgaccesslog.php is the script's file name and access.log is your log file. Now, you will be prompted for several questions. Enter your answer and then press Enter. After you answered all the questions, the output might (depending on your answers) look something like that:

gmax@heavyfuel:~$ php mgaccesslog.php access.log
+-+-+-+-+-+-+-+-+-+-+-+
|m|g|a|c|c|e|s|s|l|o|g| 1.0
+-+-+-+-+-+-+-+-+-+-+-+
 by Max R. P. Großmann
  mgaccesslog.1e5b.de

From (valid English date!) [*]: 29 Dec 2010
To (valid English date!) [Now]: 03 Jan 2011
Do you want nice pie charts? [Y]: 

Do you need information about HTTP Methods? (Y/n) [Y]: n
Do you need information about Search Terms? (Y/n) [Y]: 
Do you need information about the Most Visited Pages? (Y/n) [Y]: 
Do you need information about HTTP Versions? (Y/n) [Y]: n
Do you need information about the Number of Real Visitors? (Y/n) [Y]: 
Do you need information about the Number of Real Visitors per Hour? (Y/n) [Y]: 
Do you need information about Referers? (Y/n) [Y]: 
Do you need information about HTTP Status Codes? (Y/n) [Y]: 
Do you need information about the Eagerest Visitors? (Y/n) [Y]: 
How many? [25]: 15
Do you need information about User Agents? (Y/n) [Y]:  
How many? [20]: 15
Do you need information about Bots? (Y/n) [Y]: y
How many? [7]: 3

0.76536011695862 s
9036 lines
11806 lines/s

 -> access.log.html

... and Bob's your uncle! The generated report is now in the file access_log.html.
You will be amazed about the precision in these data - from the easy detection of most search engine clicks to an indicator of the generated traffic to a detailed overview of the most popular pages on which domain. There are pie charts, of course, but only if you enabled GDlib.

Configuration Files

Since it is possible to specify configurations in a separate file, you should use this opportunity for automated cronjobs. You can see all available preferences and the format of the file here. An example call of the script might look like this:

gmax@heavyfuel:~$ php mgaccesslog.php access.log config.ini
+-+-+-+-+-+-+-+-+-+-+-+
|m|g|a|c|c|e|s|s|l|o|g| 2.0
+-+-+-+-+-+-+-+-+-+-+-+
 by Max R. P. Großmann
  mgaccesslog.1e5b.de


0.44525098800659 s
5499 lines
12350 lines/s

 -> access.log.html

Usage II

Since version 0.9, you may upload the script onto your website. You can call it like that::

http://example.com/mgaccesslog.php?log=access.log&config=config.ini&pw=[passwort]

Please be aware of publishing this URL. The specified password has to be set in your script file.

Config files can be given by &config (see above).

If you have an idea for future versions of mgaccesslog, please send it to me! I like your suggestions to improve mgaccesslog.


© Max R. P. Grossmann, powered by Max Grossmann Systeme