# How do I get the medic-api logs when using Docker?

**URL:** <https://forum.communityhealthtoolkit.org/t/how-do-i-get-the-medic-api-logs-when-using-docker/1571>\
**Category:** Technical Support\
**Created:** [November 17, 2021, 5:14pm UTC](https://forum.communityhealthtoolkit.org/t/how-do-i-get-the-medic-api-logs-when-using-docker/1571 "2021-11-17T17:14:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenn](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/kenn/32/55_2.png) [@kenn](https://forum.communityhealthtoolkit.org/u/kenn)\
**Post date:** [November 17, 2021, 5:14pm UTC](https://forum.communityhealthtoolkit.org/t/how-do-i-get-the-medic-api-logs-when-using-docker/1571/1 "2021-11-17T17:14:10Z")

</div>

I’m getting an error reponse from medic API running on localhost docker via [these steps](https://docs.communityhealthtoolkit.org/core/guides/docker-setup/) from [local setup](https://docs.communityhealthtoolkit.org/apps/tutorials/local-setup/). I want to understand this server-side error and so I think I should check the medic-api logs.

How do I access the medic-api logs inside the docker container?

---

<div class="post-metadata">

**Author:** ![hareet](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/hareet/32/3676_2.png) [@hareet](https://forum.communityhealthtoolkit.org/u/hareet)\
**Post date:** [November 17, 2021, 5:47pm UTC](https://forum.communityhealthtoolkit.org/t/how-do-i-get-the-medic-api-logs-when-using-docker/1571/2 "2021-11-17T17:47:31Z")

</div>

[Viewing logs inside medic-os](https://docs.communityhealthtoolkit.org/core/guides/docker-setup/#viewing-logs-inside-medic-os)
