Hi all,
The function of this script is used to print the aleurier_access.log
(apache log file) file content exactly.
require 'rubygems'
require 'apachelogregex'
format = '%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"'
parser = ApacheLogRegex.new(format)
File.readlines('aleurier_access.log').collect do |line|
puts parser.parse(line)
end
What i like to do is
How to print individual set values?
for eg,
If I want to print the %h (remote host id) set values alone?
I want to sort %h set values?
Repeated host id to printed only once and also other unique host ids
values and store %h values in a database?
--
Cheers,
Ranjith Kumar.K,
Software Engineer,
Sedin Technologies,
http://ranjithtenz.wordpress.com/
http://victusads.com/
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc