Log format to ECS encoding

We have deployed the camunda engine in AWS, in docker environment. We are shipping our logs to ELK stack, can we convert the logs into ECS format. Tried few things in the tomcat server config but it dint work.

Please let me know if this is possible ?