mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
Deprecate regexp match shorthand for grok
This commit is contained in:
parent
8b26dd7f3c
commit
6cf40c15fa
1 changed files with 19 additions and 8 deletions
|
@ -135,19 +135,30 @@ class LogStash::Filters::Grok < LogStash::Filters::Base
|
|||
config :pattern, :validate => :array
|
||||
|
||||
# A hash of matches of field => value
|
||||
#
|
||||
# For example:
|
||||
#
|
||||
# filter {
|
||||
# grok {
|
||||
# match => [ "@message", "Duration: %{NUMBER:duration} ]
|
||||
# }
|
||||
# }
|
||||
#
|
||||
config :match, :validate => :hash, :default => {}
|
||||
|
||||
# Any existing field name can be used as a config name here for matching
|
||||
# against.
|
||||
# Shorthand for 'match'
|
||||
#
|
||||
# # this config:
|
||||
# foo => "some pattern"
|
||||
# filter {
|
||||
# grok {
|
||||
# # This configuration
|
||||
# match => [ "foo", "some pattern" ]
|
||||
#
|
||||
# # same as:
|
||||
# match => [ "foo", "some pattern" ]
|
||||
# # is the same as this:
|
||||
# foo => "some pattern"
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# It is preferable to use the 'match' setting instead of this one, because
|
||||
# this one is going to be removed..
|
||||
# It is preferable to use the 'match' setting instead of this.
|
||||
config /[A-Za-z0-9_-]+/, :validate => :string, :deprecated => true
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue