mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
@timestamp is now a time object
This commit is contained in:
parent
0f306d0012
commit
c8d834b306
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class LogStash::Filters::Metrics < LogStash::Filters::Base
|
|||
return unless filter?(event)
|
||||
|
||||
# TODO(piavlo): This should probably be moved to base filter class.
|
||||
if @ignore_older_than > 0 && Time.now - event.ruby_timestamp > @ignore_older_than
|
||||
if @ignore_older_than > 0 && Time.now - event["@timestamp"] > @ignore_older_than
|
||||
@logger.debug("Skipping metriks for old event", :event => event)
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue