AWSTATSに関する質問です。

「年間」のサマリーや統計を出力したいと考えております。
デフォルトは月ベースですが、やり方などあれば教えて下さい。
宜しくお願いします。

回答の条件
  • URL必須
  • 1人2回まで
  • 登録:
  • 終了:--
※ 有料アンケート・ポイント付き質問機能は2023年2月28日に終了しました。

回答1件)

id:cutxout No.1

回答回数3ベストアンサー獲得回数0

ポイント40pt

http://awstats.sourceforge.net/docs/awstats_config.html#AllowFul...

AWStats Documentation - Configuration directives and parameters

AWStatsのバージョンが不明でしたので、最新版だという前提で回答します。私が使用している 6.5 では動作確認できました。


まず、awstats.confの設定をAllowFullYearView=3に変更して下さい。その後AWStatsを開き、「表示するレポート:」欄で「-年-」「2005」を指定してOKを押せば、一年分のサマリーが表示されるはずです。


AllowFullYearView

Version : 5.9+

# AWStats save and sort its database on a month basis, this allows to build

# build a report quickly. However, if you choose the -month=all from command

# line or value ’-Year-’ from CGI combo form to have a report for all year,

# AWStats needs to reload all data for full year, and resort them completely,

# requiring a large amount of time, memory and CPU. This might be a problem

# for web hosting providers that offer AWStats for large sites on shared

# servers to non CPU cautious customers.

# For this reason, the ’full year’ is only enable on Command Line by default.

# You can change this by setting this parameter to 0, 1, 2 or 3.

# Possible values:

# 0 - Never allowed

# 1 - Allowed on CLI only, -Year- value in combo is not visible

# 2 - Allowed on CLI only, -Year- value in combo is visible but not allowed

# 3 - Possible on CLI and CGI

# Default: 2

#

AllowFullYearView=3

2) You are viewing stats for a year or month when no hits was made on your server.

When you run awstats, the reports is by default for the current month/year.

If you want to see data for another month/year you must:

Add -year=YYYY -month=MM on command line when building the html report page from command line.

Use an URL like http://myserver/cgi-bin/awstats.pl?config=xxx&year=YYYY&... if viewing stats with AWStats used as a CGI.


ただし、この方法だとAWStatsを起動してからいちいち手作業が発生します。AWStatsを起動したら常に指定した一年分(例えば2005年)を表示させたいと言うことであれば、次の様にしてみて下さい。&year=2005&month=allの部分を変更すれば、任意の年月を表示できるはずです。


http://www.example.co.jp/awstats/awstats.pl?year=2005&month=... <- 2005 年全部

http://www.example.co.jp/awstats/awstats.pl?year=2005&month=... <- 2005 年 1 月

http://www.example.co.jp/awstats/awstats.pl?year=2005&month=... <- 2005 年 2 月

id:lg-tsp

ご回答ありがとうございます。

頂いた情報で対応ができそうです。

ありがとうございました。

2006/02/14 18:26:01

コメントはまだありません

この質問への反応(ブックマークコメント)

「あの人に答えてほしい」「この質問はあの人が答えられそう」というときに、回答リクエストを送ってみてましょう。

これ以上回答リクエストを送信することはできません。制限について

回答リクエストを送信したユーザーはいません