# How to access my internal worker logs at one place

**URL:** <https://discuss.ray.io/t/how-to-access-my-internal-worker-logs-at-one-place/14837>\
**Category:** Dashboard, Monitoring & Debugging\
**Created:** [May 31, 2024, 1:09pm UTC](https://discuss.ray.io/t/how-to-access-my-internal-worker-logs-at-one-place/14837 "2024-05-31T13:09:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasanna\_kumar](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/prasanna_kumar/32/6168_2.png) [@prasanna\_kumar](https://discuss.ray.io/u/prasanna_kumar)\
**Post date:** [May 31, 2024, 1:09pm UTC](https://discuss.ray.io/t/how-to-access-my-internal-worker-logs-at-one-place/14837/1 "2024-05-31T13:09:12Z")

</div>

I have my internal logging , how i can able to see those logs at worker level in ray dashboard ?

Each worker will have it’s own log file . it is possible to stream those logs somewhere ?

---

<div class="post-metadata">

**Author:** ![Sam\_Chan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sam_chan/32/5011_2.png) [@Sam\_Chan](https://discuss.ray.io/u/Sam_Chan)\
**Post date:** [June 3, 2024, 4:22am UTC](https://discuss.ray.io/t/how-to-access-my-internal-worker-logs-at-one-place/14837/2 "2024-06-03T04:22:52Z")

</div>

Yup - see here for how to configure application logging: [Adding Application-Level Metrics — Ray 2.23.0](https://docs.ray.io/en/latest/ray-observability/user-guides/add-app-metrics.html)

Prometheus + Grafana are good options if you haven’t selected a observability tool already. See here on how to set that up: [Configuring and Managing Ray Dashboard — Ray 2.23.0](https://docs.ray.io/en/latest/cluster/configure-manage-dashboard.html#setting-up-grafana)

---

<div class="post-metadata">

**Author:** ![prasanna\_kumar](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/prasanna_kumar/32/6168_2.png) [@prasanna\_kumar](https://discuss.ray.io/u/prasanna_kumar)\
**Post date:** [June 3, 2024, 6:04am UTC](https://discuss.ray.io/t/how-to-access-my-internal-worker-logs-at-one-place/14837/3 "2024-06-03T06:04:31Z")

</div>

Hey  
Thanks for the response.  
The answer you have given will work , but my expectation was i have internal log files in a specific directory as .log file is it possible for ray to understand to read and stream it back as logs of the nodes ?

some sort of configuration can i add in ray init ??

---

<div class="post-metadata">

**Author:** ![Sam\_Chan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sam_chan/32/5011_2.png) [@Sam\_Chan](https://discuss.ray.io/u/Sam_Chan)\
**Post date:** [June 4, 2024, 5:46pm UTC](https://discuss.ray.io/t/how-to-access-my-internal-worker-logs-at-one-place/14837/4 "2024-06-04T17:46:18Z")

</div>

Like you want a card in the Ray Dashboard that streams the incoming logs for all executing tasks per node?

That we don’t have as part of the Dashboard; hence the recommendation to use Prometheus instead.

---

<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:** [June 4, 2024, 5:59pm UTC](https://discuss.ray.io/t/how-to-access-my-internal-worker-logs-at-one-place/14837/5 "2024-06-04T17:59:53Z")

</div>

One thing try:

- You can try configure the logger to save those log files in the ray logs folder (`/tmp/ray/session_*/logs`). Then they might show up in Ray Dashboard.

Not sure how you can retrieve the session id and set it up dynamically though.

---

<div class="post-metadata">

**Author:** ![prasanna\_kumar](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/prasanna_kumar/32/6168_2.png) [@prasanna\_kumar](https://discuss.ray.io/u/prasanna_kumar)\
**Post date:** [June 10, 2024, 5:37am UTC](https://discuss.ray.io/t/how-to-access-my-internal-worker-logs-at-one-place/14837/6 "2024-06-10T05:37:42Z")

</div>

Thanks for the replay , even i had Prometheus as last option .
