AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 122482
Accepted
Gatura
Gatura
Asked: 2010-03-15 22:20:21 +0800 CST2010-03-15 22:20:21 +0800 CST 2010-03-15 22:20:21 +0800 CST

squid 日志文件的问题

  • 772

我正在使用 SARG 获取有关 squid 日志文件的报告,我得到了这个结果

/usr/local/Sarg/bin/sarg -l /usr/local/squid/var/logs/access.log 
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
SARG: Records in file: 0, reading: 0.00%
sort: open failed: +6.5nr: No such file or directory
SARG: (index) Cannot open file: /Applications/Sarg/reports/index.sort
SARG: Records in file: 0, reading: 0.00%

可能是什么问题呢?

这是鱿鱼日志的一小部分

    1265783273.234   1139 176.16.1.2 TCP_MISS/200 468 GET http://clients1.google.com/complete/search? - DIRECT/74.125.79.100 text/javascript
1265783275.184   1382 176.16.1.2 TCP_MISS/200 3533 GET http://library.acadiau.ca/tutorials/plagiarism/ - DIRECT/131.162.201.52 text/html
1265783275.873    646 176.16.1.2 TCP_MISS/404 504 GET http://library.acadiau.ca/Scripts/AC_RunActiveContent.js - DIRECT/131.162.201.52 text/html
1265783285.221   9995 176.16.1.2 TCP_MISS/200 22733 GET http://library.acadiau.ca/scripts/swfobject_modified.js - DIRECT/131.162.201.52 application/x-javascript
1265783288.159   1869 176.16.1.2 TCP_MISS/304 408 GET http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif - DIRECT/192.150.8.60 image/gif
1265783288.170   1881 176.16.1.2 TCP_MISS/200 3306 GET http://www.statcounter.com/counter/counter.js - DIRECT/66.114.54.23 application/x-javascript
1265783289.592   1348 176.16.1.2 TCP_MISS/200 574 GET http://c.statcounter.com/t.php? - DIRECT/72.249.55.60 image/gif
1265783290.928   1330 176.16.1.2 TCP_MISS/404 485 GET http://library.acadiau.ca/favicon.ico - DIRECT/131.162.201.52 text/html
1265783300.566  13921 176.16.1.2 TCP_MISS/200 64437 GET http://library.acadiau.ca/tutorials/plagiarism/gmodule3.swf - DIRECT/131.162.201.52 application/x-shockwave-flash
1265783306.794   8271 176.16.1.2 TCP_MISS/200 33609 GET http://library.acadiau.ca/tutorials/plagiarism/aplus.xml - DIRECT/131.162.201.52 application/xml
1265783307.303  75758 176.16.1.253 TCP_MISS/200 274 GET http://stork42.dropbox.com/subscribe? - DIRECT/208.43.202.43 text/html
1265783314.672   1969 176.16.1.2 TCP_MISS/200 5111 POST http://safebrowsing.clients.google.com/safebrowsing/downloads? - DIRECT/74.125.79.102 application/vnd.google.safebrowsing-update
1265783320.217  13347 176.16.1.2 TCP_MISS/200 58432 GET http://library.acadiau.ca/tutorials/plagiarism/scene01.swf - DIRECT/131.162.201.52 application/x-shockwave-flash
1265783331.101   1305 176.16.1.2 TCP_MISS/200 1704 GET http://library.acadiau.ca/tutorials/plagiarism/scene02.swf - DIRECT/131.162.201.52 application/x-shockwave-flash
1265783336.204   1233 176.16.1.2 TCP_MISS/200 3911 GET http://library.acadiau.ca/tutorials/plagiarism/scene03.swf - DIRECT/131.162.201.52 application/x-shockwave-flash
1265783337.774  23100 176.16.1.2 TCP_MISS/200 101970 GET http://safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAEYod0BIMDeATIZoW4AAP________3______9__________AA - DIRECT/82.206.179.18 application/vnd.google.safebrowsing-chunk
1265783358.860   3350 176.16.1.2 TCP_MISS/200 1924 GET http://library.acadiau.ca/tutorials/plagiarism/scene05.swf - DIRECT/131.162.201.52 application/x-shockwave-flash
1265783361.661  23808 176.16.1.2 TCP_MISS/200 100536 GET http://safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAEYwd4BIJDfATIPQW8AAP____________8A - DIRECT/82.206.179.18 application/vnd.google.safebrowsing-chunk
1265783381.963  74655 176.16.1.253 TCP_MISS/200 274 GET http://stork42.dropbox.com/subscribe? - DIRECT/208.43.202.43 text/html
1265783385.818  24107 176.16.1.2 TCP_MISS/200 111718 GET http://safebrowsing-cache.google.com/safebrowsing/rd/ChNnb29nLW1hbHdhcmUtc2hhdmFyEAEYkd8BIODfATIPkW8AAP____________8A - DIRECT/82.206.179.18 application/vnd.google.safebrowsing-chunk
1265783426.316   8867 176.16.1.2 TCP_MISS/200 23630 GET http://library.acadiau.ca/tutorials/plagiarism/scene06.swf - DIRECT/131.162.201.52 application/x-shockwave-flash
1265783426.467      0 176.16.1.2 TCP_IMS_HIT/304 265 GET http://library.acadiau.ca/tutorials/plagiarism/scene06.swf - NONE/- application/x-shockwave-flash
logging log-files squid
  • 1 1 个回答
  • 1187 Views

1 个回答

  • Voted
  1. Best Answer
    Gatura
    2010-03-23T01:01:21+08:002010-03-23T01:01:21+08:00

    第一,我起诉的是旧版本的 SARG,最新版本是 2.2.7.1,除了需要更改一个文件 ip2name.c 之外没有任何问题

    void ip2name(char *ip,int ip_len)
    {
    u_long addr;
    struct hostent *hp;
    char **p;
    
    by
    
    void ip2name(char *ip,int ip_len)
    {
    unsigned long addr;
    struct hostent *hp;
    char **p;
    

    完成此操作后,报告将在 MAC 上运行良好

    • 0

相关问题

  • IIS 6 - 仅记录某些目录

  • 什么是好的日志查看器,例如 apache、postfix、syslog?

  • 如何提供可搜索的 IRC 日志?

  • 避免将某些丢失的文件记录到 Apache2 错误日志中

  • Tomcat 6 HTTP 日志滚动和清除

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve