|
|
Cron-pages/inc compute the main stats (pages, hosts, countries, trafic, directories...).
Cron-pages is need for initialization so you'll need to run it only
once. Cron-inc compute the same stats but in incremental mode.
You will have to run cron-pages.pl only once except if you change some values
in the configuration file.
- Pages, Directories, Countries, Sites, Scripts stats, Download,
Trafic stats
|
Cron-pages.pl
|
|
Purpose
|
Initialization
It compute stats scanning all the logfile excluding the current day
|
|
Frequency
|
Only once. Need to be rerun if you change the config.pl file as the
incremental version will load data produced by cron-pages.pl
|
|
Time taken
|
Depending on your logfile size and your configuration file,
it can take from a few minutes to several hours.
If your log file is really huge, I suggest you to
compress
it on several parts or to test first output via a small logfile.
|
|
How it works
|
It create the stats structure, output incremental files, generate HTML
pages for the stats and also produce time structure data.
|
|
Options
|
| -c <file> | load configuration file |
| -d <nbdays> | scan only the nbdays previous day |
| -i <file> | input log file |
| -p <level> | precision level |
| -l <language> | language output |
| -q <string> | scanning only matching string |
| -r <date> | ending date for stats |
| -s <date> | starting date for stats |
| -t <toplist> | display only toplist files |
| -u | update stats homepage |
| -x | show default value |
| -v | version |
| -z | use compressed logfiles |
|
|
Notes
|
Directory graph is not computed by cron-pages but with cron-week.
You will need to wait two weeks before having the graph.
|
|
Cron-inc.pl
|
|
Purpose
|
Incremental stats
It compute stats scanning only for the previous day
|
|
Frequency
|
Once every day.
People without cron access :
If you forgot to use cron-inc.pl for less than 7 days, cron-inc.pl
will be able to scan for the missing day. If you have more than
7 days, you will have to run back cron-pages.pl to compute
all the values from the first day.
You can alter this value in the code but it could take longer
time to compute than cron-pages if you use a high value.
Hints : use around 10% of the total days from the beginning of
log file.
|
|
Time taken
|
Typically, a few minutes.
|
|
How it works
|
It load incremental files, scan for the previous day,
compute new stats and save back the new incremental files.
Then it generate HTML pages and also append the time structure data.
|
|
Options
|
| -c | load configuration file |
| -i <file> | input log file |
| -j <dd/Mmm/yyyy> | will compute stats only for a specific day |
| -l <language> | language output |
| -p <level> | precision level |
| -s <nbdays> | scan for the nbdays previous day (default is 7) |
| -t <toplist> | display only toplist files |
| -x | show default value |
| -v | version |
|
|
Notes
|
You can use cron-inc.pl to compute stats for a specific date with
the command line : cron-inc.pl -j dd/Mmm/yyyy
(dd is the day number, Mmm the first three letter of a month with
the first one in upper, yyyy is the year).
Incremental data are not deleted if you use this option.
|
|