你完全不用耐心的看完后面所有的说明,awstats在进行日志统计时,
命令行统计增加: -databasebreak=day
报表输出时增加: &databasebreak=day
即可。
问题:
很多网站在流量从10万级增加到百万级以后就放弃了awstats作为统计,具体表现就是到月底的时候,统计数据会运行1天都运行不完。于是就改为webalizer或者analog了。其实这并非awstats统计效率不高:awstats很多丰富的统计指标:蜘蛛识别 浏览器识别,文件类型统计等都是比webalizer丰富的。webalizer要实现类似的统计力度也会出现性能问题。
原因分析:
性能的瓶颈在哪里呢:awstats统计缺省时按月统计,到月底时候记住的头20多天的历史IP等统计数据会是的数据文件变得很大(数百M),而awstats运行时,需要的内存量是数据dump文件的3-4倍。当这个monthly积累的数据导致awstats统计用到系统文件交换做内存的时候,效率就会降低了(处理速度会低2个数量级),于是出现了一天统计不完前一天日志的现象。
解决:
awstats丰富的统计指标还是很有用的,宁愿牺牲一下每天统计的精度。
1 控制一下数据截断的周期,不要让独立IP访问等历史统计周期过长;
2 一个网站已经达到日千万级的访问请求,按天的详细的数据统计也是必须的了。所以索性牺牲一下按月的独立IP统计(可以通过其他脚本处理awstats dump文件辅助实现),将日志改成按天统计,如果需要按月的汇总,可以利用awstats的dump数据成为一个中间数据源汇总统计。
按天统计后,awstats的输出文件会变成awstatsMMYYYYDD.confname.txt 每天一个统计文件,而报表的输出需要增加 &databasebreak=day&day=DD 来指定某一天的数据。
Faithful readers are most likely aware of the minutiae that concern us here at FeedBurner inter-agency headquarters, especially when it comes to new features and notable drama such as "We're running low on decaf and 2% milk. OMG!" Today's enhancement to Headline Animator, the FeedBurner service engaged in a renovation comparable to the Dan Ryan expressway reconstruction project (minus the many reflector barrels), is all about expanding the reach of your content and making things look how you want them to look.
Place Your Content in More Places, Easily
It has been suggested by considerably more than seven of you that we should offer new capabilities to help grow your audience, and that's exactly what we're committed to doing with Headline Animator. It now features step-by-step instructions for placing your content on your MySpace page, a TypePad, Blogger or WordPress.com blog, a bunch of email programs, and "Other," a category we reserve for those interesting places whose names aren't reflected in the drop-down menu.
Word Wrap
Not everyone appreciates the sangfroid of a compact headline (note this post). For you and us, caution may be thrown to the wind by applying word wrap to individual post headlines. Word wrap is turned off by default so as not to potentially overwrite any background text, but since you know your Headline Animator better than anyone you may activate it by clicking a simple checkbox if the spirit (or more likely, the linebreak) moves you.
Finally, we acknowledge our fixation on this service lately, as evidenced by the Overhaul series. But that's only because it does so much for you, costs nothing, and keeps improving. If you've not yet put your content into this bite-sized, widgety treat, this week's update offers you some tempting new recipes.
Got
Live Search Gadget - [Download]
This lightweight gadget uses a web service to fetch your search results and render them directly in the widget for the fastest search results. Be sure to check out the gadget settings panel to configure up to two additional custom searches. In the picture above you can see that I’m using a craigslist.org macro in addition to web search. You can create your own macros or, find one in the gallery.
Live Search Traffic Gadget - [Download]
Don’t get stuck in gridlock or be late to your next appointment. Traffic by Live Search Maps is a quick and simple way to see real-time traffic conditions in your area. Shortcuts to driving directions, local search or full-screen traffic view on maps.live.com are also easily available from the gadget. Metro area traffic is currently supported for these cities: Atlanta, Boston, Chicago, Denver, Detroit, Houston, Los Angeles, Milwaukee, New York, Oklahoma City, Philadelphia, Phoenix, Pittsburgh, Portland, Providence, Sacramento, Salt Lake City, San Diego, San Francisco, Seattle, St. Louis, Tampa, Washington DC.
Give it a try and let us know what you think, should we be providing more out-of-browser experiences?
--
BTW - Installing a Vista Sidebar gadget couldn't be easier, just click on the links to go the the gallery page. They click the "download" button. Then Vista will ask you if you'd like to install the gadget, and you should be good to go. Click here for more information on the Vista Sidebar.
三月 2007 | ||||||
一 | 二 | 三 | 四 | 五 | 六 | 日 |
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |