best way to access audio downloads / audio listen statistics

All,

I’ve got a rails application that allows people to publish audio files. The files are stored on Amazon S3.

I would like to publish statistics on the number of listens … and have those statistics close to real time.

I’m wondering if I should use a URL redirect WITHIN rails to redirect a RAILS URL to an S3 audio URL … then I could save the hit to the database (through RAILS) … or I could just scour the log files (I’d need to scour both S3 log files and Rails log files).

Scouring the log files is going to be messy … but having a URL redirect (within RAILS) that logs the hit is going to be perhaps expensive …

… does anyone have any ideas/thoughts/recommendations.

Etienne