mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- LogStash::Event#remove now uses HashEval
This commit is contained in:
parent
1d45784c68
commit
91ccbd855b
1 changed files with 3 additions and 1 deletions
|
@ -181,7 +181,9 @@ class LogStash::Event
|
|||
# Remove a field. Returns the value of that field when deleted
|
||||
public
|
||||
def remove(field)
|
||||
return @data.delete(field)
|
||||
return LogStash::Util::HashEval.exec(str, @data) do |obj, key|
|
||||
obj.delete(key)
|
||||
end
|
||||
end # def remove
|
||||
|
||||
# sprintf. This could use a better method name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue