Fix syntax errors in kv examples

Fix syntax errors in examples for the include_keys, exclude_keys and default_keys config values.
This commit is contained in:
Michael Richards 2014-02-15 11:17:27 -05:00
parent f3994ebc71
commit 15c868e075

View file

@ -129,7 +129,7 @@ class LogStash::Filters::KV < LogStash::Filters::Base
# To include "from" and "to", but exclude the "foo" key, you could use this configuration: # To include "from" and "to", but exclude the "foo" key, you could use this configuration:
# filter { # filter {
# kv { # kv {
# include_keys = [ "from", "to" ] # include_keys => [ "from", "to" ]
# } # }
# } # }
config :include_keys, :validate => :array, :default => [] config :include_keys, :validate => :array, :default => []
@ -141,7 +141,7 @@ class LogStash::Filters::KV < LogStash::Filters::Base
# To exclude "from" and "to", but retain the "foo" key, you could use this configuration: # To exclude "from" and "to", but retain the "foo" key, you could use this configuration:
# filter { # filter {
# kv { # kv {
# exclude_keys = [ "from", "to" ] # exclude_keys => [ "from", "to" ]
# } # }
# } # }
config :exclude_keys, :validate => :array, :default => [] config :exclude_keys, :validate => :array, :default => []
@ -151,7 +151,7 @@ class LogStash::Filters::KV < LogStash::Filters::Base
# #
# filter { # filter {
# kv { # kv {
# default_keys = [ "from", "logstash@example.com", # default_keys => [ "from", "logstash@example.com",
# "to", "default@dev.null" ] # "to", "default@dev.null" ]
# } # }
# } # }