@timestamp in log file getting replaced by processing time

I think you are actually hitting this bug here? https://github.com/logstash-plugins/logstash-input-beats/issues/33