This is a small test for using grok to extract useful data from Asterisk log files. The pattern file can the be used in a tool like Logstash.
Ruby script inspired by http://blog.bealetech.com/content/testing-logstash-grok-filters
The Asterisk-specifc patterns are located in the file patterns/pure-ruby/asterisk