Skip to content

Instantly share code, notes, and snippets.

@rmoff
Created January 27, 2015 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmoff/0defc02e3e4e5d94ecce to your computer and use it in GitHub Desktop.
Save rmoff/0defc02e3e4e5d94ecce to your computer and use it in GitHub Desktop.
Logstash 1.5: The error reported is: pattern ... not defined

Running an existing conf file from logstash 1.4.2 with logstash-1.5.0.beta1 fails with :

The error reported is:
  pattern %{WLSLOG} not defined

This seems to be because the grok plugin no longer defaults patterns_dir to ./patterns

Fix is to change all uses of grok in conf file to include patterns_dir:

grok {
	match => ["file", "%{WLSSERVER}", "file","%{OBISERVER}"]
}

becomes

grok {
	match => ["file", "%{WLSSERVER}", "file","%{OBISERVER}"]
	patterns_dir => "./patterns"
}
@rmoff
Copy link
Author

rmoff commented Jan 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment