home

evolution

software

purchase

lawyers

sexy babes in your area want to meet you... check them out!

Help and Instructions
download

 

Upload the file in ASCII, if you're running it on a remote server (chmod the file to 755, and the work directory to 777, if it's unix) and you're ready to go!

Running From The Command Line
You can generate reports from the command line, by passing variables and their values to the script in the following format...

(unix)
./sml.pl variable value
(windows)
perl sml.pl variable value

You can post as many variables and values as you want but they must be preceded by a space. The following is a list of variables that you can use, along with explanations as to what they are, and typical examples...

Standard Variables
in - input file - access.log
out - output file - results.log
sday - start day - 10
smonth - start month - 8
syear - start year - 2007
eday - end day - 17
emonth - end month - 9
eyear - end year - 2007
shour - start hour - 0
smin - start minute - 0
ssec - start second - 0
ehour - end hour - 23
emin - end min - 59
esec - end second - 59
ip - ip number - 82.67.31.6
file - file name - html
ref - referer - google
login - remote login - sean
user - authenticated user - copland
code - response code - 200
platform - user agent - Mozilla
method - request method - GET
format - transfer protocol - HTTP/1.1
size - file size - 8976

Compare Variables
ipc - ip compare - ipc +
filec - file compare - filec -
refc - referer compare - refc +
loginc - login compare - loginc -
userc - user compare userc -
codec - code compare - codec +
platformc - platform compare - platformc -
methodc - method compare - methodc -
formatc - format compare - formatc -
sizec - size compare - sizec +

Search Variables
ipsrch - ip search - ipsrch l
filesrch - file search - filesrch r
refsrch - referer search - refsrch c
loginsrch - login search - loginsrch e
usersrch - user search - usersrch e
codesrch - code search - codesrch e
platformsrch - platform search - platformsrch c
methodsrch - method search - methodc e
formatsrch - format search - formatsrch e
sizesrch - size search - sizesrch e

The search variables state how the specified string will be searched for, either from the left (l), right (r), exact match (e), or contains the term (c). If they are ommited, they default to (e), exact match.

The compare variables state whether the specified search terms are to be included in the report, or excluded from it. If any of the compare variables are not set, they default to (+).

For example, if you wish to generate a report from a file called access.log consisting of all pageviews from google and write the results to a file called google.pageviews.log then you'll need to type the following at the command line...

(unix)
./sml.pl in access.log file jpeg file jpg file gif file png file ico filec - filesrch r ref google refsrch c out google.pageviews.log
(windows)
perl sml.pl in access.log file jpeg file jpg file gif file png file ico filec - filesrch r ref google refsrch c out google.pageviews.log

Add as many file variables for as many non html files that you're serving on that domain.

Running From The Web
All of the above options are available via a simple point and click interface by running the SML script from within your browser. Plus a few extras...

Title is the text you wish to be displayed at the top of the page (HTML can be used here).
Entries is the number of entries per page you wish to be displayed.
View/Process allows you to view a previous report (or raw log file) or process a new report based on the criteria selected.

Note that you will not be able to see the unique hits on raw logs until you compile reports on them by selecting process, then clicking report.

"Server Time Outs" and "500 Server Errors"
You may get these when processing very large log files from your web browser, in which case you need to raise the timeout level on your Apache server. To do this, load the "httpd.conf" file into a text editor and increse the "Timeout" value before restarting Apache.

Alternatively, bypass the web server completely by generating your report via the command line as explained above, and viewing the results in your browser when completed.

 

archives

rss feed

contact

charlotte

friends

eatliver
blogtoplist
blogdumps
your site
your site
your site
your site
your site
your site
your site




22,000 visitors per day to your website for FREE

feed the starving africans