SARG, Squid日志报表

SARG, 全称是Squid Analysis Report Generator.
是一个非常的Squid日志分析工具, 并且可以输出为html. 列出每位用户访问的站点信息, 时间占用, 排名, 链接次数, 访问量等等….

下载: http://sourceforge.net/projects/sarg/files/sarg/sarg-2.3.1/sarg-2.3.1.tar.gz/download

1. 安装

tar zxf sarg-2.3.1.tar.gz 
cd sarg-2.3.1
./configure
make -j4
make install

就完成sarg的安装.
配置文件地址在/usr/local/etc/sarg.conf

2. 配置
主要修改几处配置, 其他直接用默认即可
access_log access.log地址
charset UTF-8

然后运行sarg, 他会在你的wwwroot生产html, 你直接在浏览器输入即可访问到.

Leave a Comment

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: