Logstash 7.11 ruby filter error

Hello World,

I wanted to add 5 hours in my datetime through logstash.
have found a way in logstash 6.4.

ruby {
code => 'event.set("@timestamp", LogStash::Timestamp.new(Time.at(event.get("@timestamp").to_f+86400)))'

but in logstash 7.11 its not working with the following error


sorry for not sharing the logs

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.