# Syncing session log files

**URL:** <https://discuss.ray.io/t/syncing-session-log-files/15735>\
**Category:** Ray Clusters\
**Created:** [September 5, 2024, 6:05pm UTC](https://discuss.ray.io/t/syncing-session-log-files/15735 "2024-09-05T18:05:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xoffey](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/xoffey/32/6386_2.png) [@xoffey](https://discuss.ray.io/u/xoffey)\
**Post date:** [September 5, 2024, 6:05pm UTC](https://discuss.ray.io/t/syncing-session-log-files/15735/1 "2024-09-05T18:05:22Z")

</div>

- High: It blocks me to complete my task.

I need to periodically propagate log files from worker nodes to S3, so they will be available permanently. I have to do this incrementally while the program is running, and not wait until the end, in case something crashes. I think my driver program should be able to to rclone from the session logs directory to my intended destination. But how can my driver program know the path of the logs directory?

I see in the documentation that it’s at /tmp/ray/session\_\*/logs, but what is the api, if any, for getting the session id?

---

<div class="post-metadata">

**Author:** ![xoffey](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/xoffey/32/6386_2.png) [@xoffey](https://discuss.ray.io/u/xoffey)\
**Post date:** [September 11, 2024, 5:13pm UTC](https://discuss.ray.io/t/syncing-session-log-files/15735/2 "2024-09-11T17:13:13Z")

</div>

have I stumped the experts, somehow? 🙂
