How to push log files from pods to AWS S3

I have a use case of collecting logs from pods and to store them in AWS S3. These logs are not written to stdout. While writing to S3 , the logs should be in same format as-is. I know we could try by mounting volumes, pls share if you guys have come across something similar.