# Sherlog Holmes *Less data containing useful information is way better than lots of data containing a mess.* Don't you hate thousands of lines in a log blowing up with your troubleshooting? Lots of useless data that you have to filter just to turn that 300 MB of madness into a 30 KB of useful information. If you need something that can rip off useless entries so you can have a clue about what is going on with that application, you should give Sherlog Holmes a try. ## Installation Add this line to your application's Gemfile: ```ruby gem 'sherlog_holmes' ``` And then execute: $ bundle Or install it yourself as: $ gem install sherlog-holmes ## Concepts Sherlog works by grabbing every line of a log and parsing it into a simple structure containing: - Time - Level - Category - Origin - Message - Exception - Stacktrace You need to supply a regular expression that maps those fields in order to match your log entry. Here is an example: ```regexp (\w+)\s(\s+)\s(.+) ``` Notice that you don't need to define every field, just the ones shown in your log. Patterns for exception and stacktrace should be defined separately. The exception pattern is used only in the message field. Here is a complete example of a pattern configuration: ```yaml jboss: entry: (?