Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
run awstats under rack
Perl Java Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
public
vendor/cache
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
TODO.md
config.ru

README.md

rawstats

How to host awstats under ruby or rack. You should only have to setup a daily cron job.

Running

% bundle install --binstubs
% bin/rackup
% open http://localhost:9292

Config Options

There's only two options, where your store your data and the command used to grab your history from logs.

DirData Config Option

By default the data is set to <rawstats root>/local-data. If you need to change that then you should export the RAWSTATS_DATA_DIR environmental variable, it'll automatically use that if set. For more information on this variable, checkout the awstats docs on this option.

LogFile Config Option

By default the data is set to gzip -c -d /var/log/nginx/access_logs/*.log.*.gz |. If you need to change that then you should export the RAWSTATS_LOG_COMMAND environmental variable, it'll automatically use that if set. For more information on this variable, checkout the awstats docs on this option.

Cron

You only need to run bin/daily from a cron job, you can run it by hand if you want.

% bin/daily

I'm running it like this on my systems:

% crontab -l
0 8 * * * cd /home/atmos/pages-stats && bin/daily >> /home/atmos/pages-stats/cron.log

LICENSE

The license is GPL because I have no clue how else to distribute awstats(which is GPL).

Something went wrong with that request. Please try again.