mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- style and typo fixes
This commit is contained in:
parent
b7aa7b3d78
commit
6bf100a8b9
2 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ class LogStash::Filters::Base < LogStash::Plugin
|
|||
#
|
||||
# filter {
|
||||
# myfilter {
|
||||
# add_tags => [ "foo_%{somefield}" ]
|
||||
# add_tag => [ "foo_%{somefield}" ]
|
||||
# }
|
||||
# }
|
||||
#
|
||||
|
@ -32,7 +32,7 @@ class LogStash::Filters::Base < LogStash::Plugin
|
|||
#
|
||||
# filter {
|
||||
# myfilter {
|
||||
# add_fields => [ "sample", "Hello world, from %{@source}" ]
|
||||
# add_field => [ "sample", "Hello world, from %{@source}" ]
|
||||
# }
|
||||
# }
|
||||
#
|
||||
|
|
|
@ -35,7 +35,7 @@ class LogStash::Filters::Grep < LogStash::Filters::Base
|
|||
re = Regexp.new(pattern)
|
||||
@patterns[field] << re
|
||||
@logger.debug(["grep: #{@type}/#{field}", pattern, re])
|
||||
end # @config.each
|
||||
end # @match.merge.each
|
||||
end # def register
|
||||
|
||||
public
|
||||
|
@ -89,7 +89,7 @@ class LogStash::Filters::Grep < LogStash::Filters::Base
|
|||
"(#{match_count}/#{match_want} matches)")
|
||||
event.cancel
|
||||
end # match["match"].each
|
||||
end # config.each
|
||||
end # @patterns.each
|
||||
|
||||
if not matched || event.cancelled?
|
||||
@logger.debug("grep: dropping event, no matches")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue