Logstash filter ruby create new event?

hi, try:

ruby {
code => "event['delta_time'] = Time.now.to_i - event['@timestamp'].to_i"
}

that should be at least the right logstash syntax