Skip to content

Instantly share code, notes, and snippets.

@nikolavp
Created January 16, 2013 13:18
Show Gist options
  • Save nikolavp/4547077 to your computer and use it in GitHub Desktop.
Save nikolavp/4547077 to your computer and use it in GitHub Desktop.
Grok plugin code
@@patterns_path ||= Set.new
if __FILE__ =~ /file:\/.*\.jar!.*/
@@patterns_path += ["#{File.dirname(__FILE__)}/../../patterns/*"]
else
@@patterns_path += ["#{File.dirname(__FILE__)}/../../../patterns/*"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment