Log Persistence - Ray cluster (EMR Cluster of AWS)

Hi, I’ve been reading in the ray documentation that by default, Ray writes logs to files in the directory /tmp/ray/session_*/logs on each Ray pod’s file system, including application and system logs but does not provide a native storage solution for log data. Users need to manage the lifecycle of the logs by themselves. I would like to store the logs of my cluster in a S3 bucket to persist them after the cluster was shut down.

Can someone guide me on how to achieve this?

Here are the documentation and example for this Log Persistence — Ray 2.5.1