我的设置涉及使用mod_cache和mod_proxy的Apache来代理和caching我的iOS应用程序和Web服务之间的XML数据。 现在我正在使用awstats来查看我的iOS应用程序向我的代理服务器发出了多less请求。 有什么方法可以查看实际对Web服务的服务器进行的请求的统计信息(或者只是一些数字)? 以下是服务器设置的清晰图示: iOS应用程序<—–>我的caching代理服务器<—–> Web服务 请注意,除了与Web服务交互以外,我无法访问Web服务的服务器。
Error: Couldn't open file "/var/www/awstats/awstats032014.site.net.tmp.9198" for write: Permission denied Setup ('/etc/awstats/awstats.site.net.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory). 手动尝试更新awstats(通过浏览器链接)时出现此错误。 我已经将/ var / www / awstats /的文件夹权限设置为775,并仍然出现错误。 如果我在该文件夹上创build一个新的文件,默认权限设置将权限设置为774,这应该工作。
我已经尝试了两个星期,并且在这个问题上我访问了无数的网站,看起来有些东西我不在这里,而我在迷路。 我pipe理弄清楚如何将来自两台服务器的日志合并在一起。 (注意只将匹配域合并在一起) 第一台服务器的日志从2012年12月15日到2014年4月8日 第二台服务器的日志范围从2014年3月2日至2014年4月9日 我能够成功地合并它们使用logresolvemerge.pl脚本简单地消耗每个日志和> out_putting_it_to_file 看看每个服务器的两个日志,格式看起来完全一样。 我遇到的问题是生成日志的统计页面。 我把它煮的命令是 / usr / share / awstats / wwwroot / cgi-bin / awstats.pl dir = / usr / / home / User / Documents / parced -month = all -year = all -update -buildpdf 在conf目录中我有一个名为awstats.example.com.conf的文件 # Name of the logfile LogFile=/home/User/Documents/MergedStats/merged_example.com_access_log LogType=W LogFormat=1 SiteDomain="example.com" HostAliases="REGEX[example\.com$] " […]
希望有人能指出我试图使用由Amazon ELB生成的访问日志的LogFormat有什么问题。 用于ServerFault可读性的多行: %time5 %elb %host %host_port %host_r %host_r_port %request_processing_time %backend_processing_time %response_processing_time %code %backend_status_code %received_bytes %bytesd %methodurl 日志条目示例(清理后): 2014-08-28T17:59:14 awseb-e-2-AWSEBLoa-AAAAAAAA 123.123.123.123 44153 10.123.123.123 80 0.000046 0.536613 0.000045 200 200 0 13129 "GET /path/to/web/app HTTP/1.1" 日志在发送到AWStats之前被清除。 我使用以下replace: cat ${s3_logs_dir}/* \ | sed -e "s/\(\.[0-9]\{1,3\}\):\([0-9]\{2,5\}\)/\1 \2/g" \ | sed -e "s/\(:[0-9]\{2\}\)\(\.[0-9]\{6\}Z\)/\1/g" \ | sed -e "s/http:\/\/www\.example\.com:80//g" \ […]
默认情况下,awstats将.php Dynamic PHP Script file到一个Dynamic PHP Script file 。 但是,该网站的模式在于route=??? 后一个index.php? ,例如: GET /index.php?route=account/login/valid HTTP/1.1 GET /index.php?route=account/logout HTTP/1.1 GET /index.php?route=product/sunglasses/success HTTP/1.1 awstats可configuration为打破index.php后面的routestream量? 如果否,任何其他工具可以完成这项工作?
我从awstats得到这个通知: Error while processing /etc/awstats/awstats.conf Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.4 (build 20150714) From data in log file "/var/log/apache2/access.log"… Error: Couldn't open server log file "/var/log/apache2/access.log" : Permission denied Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory). 但是,我没有看到权限的任何错误: > ls […]
我正在尝试将AWStats添加到我正在工作的Apache网站上。 但是当我去我的Perl脚本失败: http://localhost/awstats/awstats.pl?config=my.domain.here 我在浏览器中得到这个错误500: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. 我有以下错误日志条目 [Mon Feb 01 19:59:48 2010] [error] [client 127.0.0.1] (OS 2)The system cannot find the file specified. : couldn't create child process: 720002: awstats.pl [Mon Feb 01 19:59:48 2010] [error] [client 127.0.0.1] (OS […]
在AWStats下的“从外部页面(除search引擎之外的其他网站)的链接”中,它生成了链接到我的页面的页面列表。 我看到像Bing,YouTube,网页等页面。但是,页面内部有很多内部链接。 接近底部报道如下: http://72.249.150.9/distributors.php 5 2.4 % http://72.249.150.9/contact/ 5 2.4 % http://72.249.150.9/catalog/ 4 1.9 % http://72.249.150.9/flex-point-hockey-grip.php 5 2.4 % http://72.249.150.9/sticky-grip-foam.php 5 2.4 % http://72.249.150.9/video.php 10 4.8 % http://72.249.150.9/dealers/ 5 2.4 % http://72.249.150.9/feedback/ 5 2.4 % http://72.249.150.9/products.php 10 4.8 % http://72.249.150.9/ergo-hockey-grip.php 5 2.4 % 注意 :由于SSL要求,静态IP被设置在适当的位置。
我想安排一个perl脚本每天运行,但我不知道如果我做的一切正确。 我想运行的脚本是每天更新AWStats,而无需手动按更新。 目前,我在cron.d文件夹中创build了一个文件,其中包含以下文本: 00 09 * * * /usr/local/awstats/cgi-bin/awstats.pl -config=cwp-dev-02 如果我运行: /usr/local/awstats/cgi-bin/awstats.pl -config=cwp-dev-02 统计信息成功更新,但计划任务似乎没有发生…
我将Web服务移到了新的服务器上。 我发现,在旧的服务器中,下面给出的命中数与awstats大致相同(例如,给定date5537, awstats 5557次): grep -v bot myaccess.log| # file contains given vhost for given date range \ grep -v rss2email|\ grep -v Slurp|\ grep -v pider| # Ignore spiders \ egrep 'HTTP/…. (200|304) '| # Catch only 200 and 304 responses \ grep -v Wget|\ grep -v Bot|\ grep -v rawler| # Ignore crawlers […]