# WEBLOG in RUBY.. Can u help me?

**URL:** <https://www.ruby-forum.com/t/weblog-in-ruby-can-u-help-me/60903>\
**Category:** Ruby\
**Created:** [May 18, 2006, 12:58pm UTC](https://www.ruby-forum.com/t/weblog-in-ruby-can-u-help-me/60903 "2006-05-18T12:58:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bader](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/13edae/32.png) [@Bader](https://www.ruby-forum.com/u/Bader)\
**Post date:** [May 18, 2006, 12:58pm UTC](https://www.ruby-forum.com/t/weblog-in-ruby-can-u-help-me/60903/1 "2006-05-18T12:58:32Z")

</div>

Hello all

Can you help me in writing (or finding an already written) code to read  
a weblog file  
has the form:

127.0.0.1 - frank [10/oct/2000:13:55:36 - 0700] “get/apachi\_pb.gif  
HTTP/1.0” 200 2326

And then produce the following statistics:

1. #of times an IP or a domain name visited the web site
2. Total # of unique IP
3. #of times each different web page was visited in the web site
4. Total # of hits and unique visitor per site for every day in the web  
site
5. Total # of hits and unique visitor per day for every month in the web  
site

THANK YOU

---

<div class="post-metadata">

**Author:** ![Bader](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/13edae/32.png) [@Bader](https://www.ruby-forum.com/u/Bader)\
**Post date:** [May 18, 2006, 4:08pm UTC](https://www.ruby-forum.com/t/weblog-in-ruby-can-u-help-me/60903/2 "2006-05-18T16:08:50Z")

</div>

just as a note. You are going to really confuse people if you call that  
a  
weblog. “Weblog” is the long form of the word “Blog”.

What you’re talking about doing is parsing “server logs” or “log files”

There are tons of apps designed to do specifically that. I’d recommend  
taking a look at analog and webalizer. Both free and opensource but not  
written in ruby. There is, of course, and entire industry built around  
writing apps to parse log files in interesting and useful ways.

- kate = masukomi

---

<div class="post-metadata">

**Author:** ![Bader](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/13edae/32.png) [@Bader](https://www.ruby-forum.com/u/Bader)\
**Post date:** [May 18, 2006, 4:15pm UTC](https://www.ruby-forum.com/t/weblog-in-ruby-can-u-help-me/60903/3 "2006-05-18T16:15:00Z")

</div>

Well the standard tool for web server log analysis is analog  
(www.analog.cx) which is available on a wide variety of platforms. You  
can use it with report magic ([www.reportmagic.org](http://www.reportmagic.org)) to create nice  
graphs.

Nothing to do with Ruby but then your question has nothing to do with  
Ruby either.
