# Log Persistence - Ray cluster (EMR Cluster of AWS)

**URL:** <https://discuss.ray.io/t/log-persistence-ray-cluster-emr-cluster-of-aws/11488>\
**Category:** Dashboard, Monitoring & Debugging\
**Created:** [July 19, 2023, 5:07pm UTC](https://discuss.ray.io/t/log-persistence-ray-cluster-emr-cluster-of-aws/11488 "2023-07-19T17:07:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![criss448](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@criss448](https://discuss.ray.io/u/criss448)\
**Post date:** [July 19, 2023, 5:07pm UTC](https://discuss.ray.io/t/log-persistence-ray-cluster-emr-cluster-of-aws/11488/1 "2023-07-19T17:07:21Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Huaiwei\_Sun](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/huaiwei_sun/32/1316_2.png) [@Huaiwei\_Sun](https://discuss.ray.io/u/Huaiwei_Sun)\
**Post date:** [July 19, 2023, 5:41pm UTC](https://discuss.ray.io/t/log-persistence-ray-cluster-emr-cluster-of-aws/11488/2 "2023-07-19T17:41:11Z")

</div>

Here are the documentation and example for this [Log Persistence — Ray 2.5.1](https://docs.ray.io/en/latest/cluster/kubernetes/user-guides/logging.html)
