this is kind of a terrible idea. Asterisk full log can run hundreds of lines a second. This could potentially destroy you system resources. A NOSQL database may be a better alternative. Something fast and light.
There are discussions on stackoverflow about this topic