thekrakken / java-grok

Simple API that allows you to easily parse logs and other files
http://grok.nflabs.com/
Other
358 stars 152 forks source link

Include patterns as resource, and load by default #63

Open OrangeDog opened 7 years ago

OrangeDog commented 7 years ago
  1. Move /patterns to /src/main/resources/io/thekraken/grok/patterns (or similar).
  2. Add create(InputStream) and/or create(URL) methods to allow loading patterns from not just files.
  3. Add a create() method that loads all the packaged patterns.
OrangeDog commented 7 years ago

For some reason I hadn't noticed addPatternFromReader. The priorities are therefore 1, 3, 2 I suppose.