Skip to content

Instantly share code, notes, and snippets.

@hugespoon
Created May 1, 2013 14:21
Show Gist options
  • Save hugespoon/5495528 to your computer and use it in GitHub Desktop.
Save hugespoon/5495528 to your computer and use it in GitHub Desktop.
grok {
type => "syslog"
pattern => [ "%{SYSLOGBASE} Failed password for %{USERNAME:user} from %{IPORHOST:host} port %{POSINT:port} %{WORD:protocol}" ]
add_tags => [ "ssh", "grokked", "auth_failure" ]
}
ERROR
{:timestamp=>"2013-05-01T09:17:07.306000-0500", :message=>"Invalid setting for grok filter plugin:\n\n filter {\n grok {\n # This setting must be a string\n # Expected string, got [\"ssh\", \"grokked\", \"auth_failure\"]\n add_tags => [\"ssh\", \"grokked\", \"auth_failure\"]\n ...\n }\n }", :level=>:error}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment