Hi,
I need to set the @timestamp field to date contained in another field of my log
(instead of using the default indexation time)
I tried to use the date filter pluging in combination with ruby plugin
Using this code
date {
match => [ "ts", "yyyyMMddHHmmss" ]
timezone => "UTC"
target => "ts_temp"
}
ruby {
code => "event.set('@timestamp',event.get('ts_temp'))"
}
I get
Ruby exception occurred: wrong argument type NilClass (expected LogStash::Timestamp)
What I'm doing wrong?
Thank you very much
Regards
Anna