• RSS订阅
  • 交换链接
  • 首页

Jeffrey’s Blog

Web&P2P系统架构及优化


Squid Analysis Report Generator(sarg)安装使用笔记

August 30th, 2007

作者: Jeffrey
出处:http://blog.zhangjianfeng.com/?p=628

sarg是分析squid日志的一个小工具,

Sarg的输出格式为html格式,可列出了每位用户访问互联网的目标站点,时间占用,排名,连接次数,访问量等

官方主页:http://www.sarg-squid.org/

我今天没上得去.到http://sarg.sourceforge.net/sarg.php下载了sarg-2.2.3.1版本

++安装与配置
tar … && ./configure && make && make install
可以修改/usr/local/sarg/sarg.conf #文件中有各参数说明
language English
access_log /var/logs/squid/access.log.0 #squid日志文件存放位置
title "Squid User Access Reports"
temporary_dir /tmp 
output_dir /var/www/html/sarg
overwrite_report no
mail_utility mail
topsites_num 100
exclude_codes /usr/local/sarg/exclude_codes
max_elapsed 28800000
charset GB2312

exclude_hosts /usr/local/sarg/norecords
# 指定不参加排序的站点列表文件名为/usr/local/sarg/norecords,每一行一个域名,如下所示
google.com
csdn.net
microsoft.com

生成报表文件
sarg -o /var/www/html/squid.daily  -l /usr/local/squid/var/logs/access.log  
#如果在配置文件中指定正确,此处可以直接运行sarg
# 可以写入crontab定时生成

sarg.jpg

Last modified at: Wednesday, October 24th, 2007 03:34:23 am
Trackback URL: http://blog.zhangjianfeng.com/article/628/trackback

给本文打分: 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
Tags: sarg, squid, 笔记
2007/08/30 | 阅读全文 | 系统管理 | Email This Post | Print This Post | 1,653 views |
收藏到网摘: Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

Related Post

  • Monday, September 3rd, 2007 -- squid代理网关笔记
  • Monday, February 5th, 2007 -- squid安装配置笔记(反向代理)
  • Tuesday, June 24th, 2008 -- oracle一次数据迁移笔记
  • Friday, June 6th, 2008 -- xen安装及配置笔记
  • Monday, May 12th, 2008 -- SLES 10-SP1系统BONDING网卡完成冗余笔记
  • Saturday, March 29th, 2008 -- squid日志状态说明
  • Wednesday, December 26th, 2007 -- mysql主从服务器的配置笔记
  • Saturday, December 22nd, 2007 -- suse 学习笔记
  • Sunday, December 16th, 2007 -- ubuntu7.10 gutsy笔记
  • Friday, September 28th, 2007 -- cvs笔记

0 Responses to “Squid Analysis Report Generator(sarg)安装使用笔记”


  1. No Comments

Leave a Reply

  • :em04:
  • :em18:
  • :em17:
  • :em10:
  • :em01:
  • :em05:
  • :em15:
  • :em07:
  • :em03:
  • :em13:
  • :em09:
  • :em12:
  • :em11:
  • :em06:
  • :em16:
  • :em14:
  • :em02:
  • :em08:

« 解密Windows Vista各版本的区别
Hoekey - 终极的热键软件 »

    最新文章

    • Subversion的用户自助修改口令实现(linux测试通过)
    • SLES10-SP1+Apache-2.0.63+SVN-1.4.6安装配置笔记
    • [音乐欣赏]A place nearby
    • 不错的firefox插件---鼠标手势mouse gestures
    • 一些相克食品
    • oracle一次数据迁移笔记
    • 不错的vi-vim键盘图(中英文双版)
    • xen安装及配置笔记
    • Multiple network cards and bridges in Xen[zz]
    • 从LiveJournal后台发展看大规模网站性能优化方法[zz]

    评分最高文章

      • 今天下载的一个CHM文件,打开时右边的内容看不到,提示“该页无法显示”。
      • linux日志服务器配置笔记
      • Legato networker学习笔记(杂)
      • linux tips 技巧笔记
      • [BT下载]2006韩剧-葡萄园的那小伙儿
      • 我家的金吉拉
      • 卡巴斯基病毒库离线更新方法
      • 忽悠姐妹花主题曲下载
      • 轻轻松松把 Apache 配置安全
      • 北京IDC机房介绍

    随机文章:

    • Cygwin安装配置笔记
    • 一张有意思的照片,来自网络.
    • sql 调优整理[zz]
    • 北京将开始全面捕杀流浪动物,请互相转告
    • 一组幽默镜头
    • smoothwall发布VPN
    • 关于标点符号的英语解释[zz]
    • as4-u2安装pptpd笔记
    • grep的使用
    • 用户组的管理

    最新评论

    • very good :em02: ,I like very much !!...
    • :em03: :em13: :em15: :em07...
    • 北京电信通有四个机房1惠普机房 2中...
    • :em04: :em18: :em17...
    • 结婚的好日子啊8月10...
    • c2950-1-1(config)# snmp-server trap-source FastEt...
    • :em16: :em16: :em16: :em16: :em16: :em16: :...
    • :em01: :em07: :em04: :em17: :em10: :em18: :...
    • 我是天称座 :em14: :em15: :em03: :em02: :...
    • [...] 前面一段:1.3.6.1.4.1. 可以查看这...


    邮件订阅  
  • Categories

    • 个人日志 (15)
    • 休闲娱乐 (79)
    • 应用服务 (86)
    • 影音娱乐 (10)
    • 电脑网络 (78)
    • 站点日志 (19)
    • 系统管理 (242)
    • 英语学习 (15)
    • 衣食住行 (41)
    • 资料共享 (28)
  • 工具网址

    • 天气预报
    • 常用电话
    • 疾病查询
    • 在线翻译
    • Alexa排名查询
    • IP信息查询
    • 邮箱图标生成
    • 我的Firefox插件
  • 友情链接

    • linuxの飘扬
    • winter的平凡生活
    • 伤感星星的天空
    • 回忆未来[张宴]
    • 存储部落
    • 扶凯Blog
    • 沐宇春风
    • 爱MySQL中文网
    • 狗.车.志
    • 非礼勿视
  • Tags

    • 下载 优化 使用 免费 北京 升级 学习 学习笔记 安装 工具 技巧 日志 最新 服务器 笔记 英语学习 菜谱 视频 解决 调优 软件 运程 配置 配置文件 食物 2007 apache blog dreamhost freebsd Legato linux mysql networker oracle php RAID5 RedHat sendmail shell squid suse Ubuntu windows wordpress

Jeffrey's Blog is powered by WordPress 2.3.1 and Unnamed 1.22
Entries (RSS) and Comments (RSS) Admin 京ICP备06038449号

Podcast Powered by podPress (v8.8)