how to Modify the field name

Dear

I use logs-to-elastisearch script to send logs to ES when being given field names can not contain “.”, So how to modify the log field name