@timestamp in date_nanos

Hi ,
I am using ELK 7.7.0 and want to know that how can I change @timestamp to date_nanos while sending logs from logstash to elasticsearch?
I know that we can change format of @timestamp to date_nanos , but it simply appends the zeroes. I need actual values rather than zeroes.