mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- fix variable
This commit is contained in:
parent
46ca3f2ada
commit
d5be87fc77
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class LogStash::Filters::Mutate < LogStash::Filters::Base
|
|||
@gsub_parsed = []
|
||||
@gsub.nil? or @gsub.each_slice(3) do |field, needle, replacement|
|
||||
if [field, needle, replacement].any? {|n| n.nil?}
|
||||
@logger.error("Invalid gsub configuration. gsub has to define 3 elements per config entry", :file => file, :needle => needle, :replacement => replacement)
|
||||
@logger.error("Invalid gsub configuration. gsub has to define 3 elements per config entry", :field => field, :needle => needle, :replacement => replacement)
|
||||
raise "Bad configuration, aborting."
|
||||
end
|
||||
@gsub_parsed << {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue