[How to] Reconfigure Plesk to save AWstats statistics for previous months

Создана:

2016-11-16 12:59:40 UTC

Изменена:

2017-08-16 18:30:44 UTC

2

Помогла ли вам статья?


Есть вопросы?

Отправить запрос

[How to] Reconfigure Plesk to save AWstats statistics for previous months

Applicable to:

  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux

Symptoms

AWstats statistics generator is used by these domains:

Plesk 8.x:

Domains> DOMAIN.TLD > Setup > Web statistics: AWstats

Plesk 9.x:

Domains > DOMAIN.TLD > Web Hosting Settings > Web statistics: AWstats

Plesk 10.x and above:

Domains> DOMAIN.TLD > Control Panel > Websites > Domains > DOMAIN.TLD > Web statistics: AWstats

Web and traffic statistics are retained for three months only. How can I configure Plesk to save statistics for a longer period?

Resolution

Since version 8.6.0, Update 5, the number of months for which statistics are kept may be configured through the Plesk GUI and in the database.

Plesk 8.6:

Domains > DOMAIN.TLD > Report > Bandwidth Usage History

Plesk 9.x:

Domains > DOMAIN.TLD > Click on the 'Statistics' link highlighted in blue > Summary Report > View Traffic History

Plesk 10.x and above:

Hosting Services > Service Plans > PLAN_NAME > Logs & Statistics

Set desired value for the limit Retain Web and traffic statistics . The default value for Retain Web and traffic statistics is three months. In Plesk 8.6 and 9.x, you may change the default value if you configure the stat_ttl parameter in the misc table of the Plesk database:

~# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e"replace into misc values ('stat_ttl',12)"

(where 12 months is the desired value for statistics history).

Since version 10.0, the limit may also be changed in the database for each domain:

~# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e "update dom_param set val=12 where param=’stat_ttl’ and dom_id=N"

Where N is the domain ID:

~# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e "select id from domains where name='DOMAIN.TLD'"

If you un-check this option, statistics are not stored.

Note: Since version 10.x, you may configure the limit per Service Plan through the GUI. In the database, the limit may be configured per domain. The custom value stat_ttl is not reset when syncing a subscription with a service plan.

Была ли эта статья полезной?
Пользователи, считающие этот материал полезным: 2 из 4
Еще есть вопросы? Отправить запрос
Войдите в службу, чтобы оставить комментарий.