The context: you have deployed IPv6 on your server, your Ruby on Rails webapp is running fine and is accessed both in IPv4 and IPv6. Nice. Now you want now to get a little report to know the proportion of IPv4/IPv6 requests. OK. I have the same need. When thinking about it, I dediced to fork the excellent request-log-analyser and update it. Then I realized that it could be achieved much more easily with a couple of awk lines.
More >