compile.html Contents iman.html


Log files

Visitor log

From Count version 2.6, some information about visitor can be logged if in count.cfg log_visitor_info is set to yes. Please look at the directory structure for the location of visitor log file. The visitor log file can be rotated with the option log_rotate_interval=seconds in the count.cfg file. For example if you want to rotate the visitor log file in every 30 days, the rotation interval will be 30*24*60*60 = 2592000. The rotating visitor log file names will be something like visitor. log_933120000, visitor.log_935712000. If you do not want to rotate log file, put log_rotate_interval=0. Logs are written only if the counter hits were saved successfully. Although server log file is there for these kind of things, I added this feature due to frequent request to do so.

Plese note, I'm playing around with log format, it might change. If you've any suggestion, please let me know.

The syntax of the visitor log is shown below:


visit time|remote host|remote ip|page url|hit count|browser type

If any of the field is not found, it will be filled with <unknown>

Example:


Tue Mar  6 10:01:31 2001||127.0.0.1|http://localhost/tc/|58|Mozilla/4.75 [en] (X11; U; Linux 2.0.36 i686)
Tue Mar  6 10:01:33 2001||127.0.0.1|http://localhost/tc/|59|Mozilla/4.75 [en] (X11; U; Linux 2.0.36 i686)
Tue Mar  6 10:01:33 2001||127.0.0.1|http://localhost/tc/|60|Mozilla/4.75 [en] (X11; U; Linux 2.0.36 i686)
Tue Mar  6 10:01:34 2001||127.0.0.1|http://localhost/tc/|61|Mozilla/4.75 [en] (X11; U; Linux 2.0.36 i686)
Tue Mar  6 20:38:16 2001||127.0.0.1|http://localhost/|24455927|Mozilla/4.75 [en] (X11; U; Linux 2.0.36 i686)

Analyzing visitor log

The counter visitor log can be analyzed by the popular log analysis program Analog. In order to Analog understand the counter's visitor log file, it would need to have the following information in its configuration file. Example:

/etc/analog.cfg
##############
LOGFORMAT (%j %M %d %h:%n:%j %Y|%j|%s|%r|%j|%B)
LOGFILE "/usr/local/etc/Counter/logs/visitor.log*"
##############

For more info on this, please visit Analog Log formats page.

This information on using Analog on the counter visitor log is provided by Alexander Nikolayev.
To see an example, please visit his site: http://www.hamilton.lv/stats/Cnt_Hamilton.htm

Error log


compile.html Contents iman.html