This is an example of forwarding logs to elasticsearch using fluentd. In the process, it does use a custom time key.
Run Elasticsearch and FluentD locally
#run elasticsearch
docker run -e discovery.type=single-node -e xpack.security.enabled=false -p 9200:9200 -d elasticsearch:7.2.0
#install fluentd