# Where is the weaviate log file location

**URL:** https://forum.weaviate.io/t/where-is-the-weaviate-log-file-location/617
**Category:** Support
**Created:** [September 5, 2023, 12:21pm UTC](https://forum.weaviate.io/t/where-is-the-weaviate-log-file-location/617 "2023-09-05T12:21:50Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![kranthi\_kumar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/kranthi_kumar/32/433_2.png) [@kranthi\_kumar](https://forum.weaviate.io/u/kranthi_kumar)
#### Post date: [September 5, 2023, 12:21pm UTC](https://forum.weaviate.io/t/where-is-the-weaviate-log-file-location/617/1 "2023-09-05T12:21:50Z")

</div>

Hi Team,

i have enabled the LOG\_LEVEL: ‘debug’ and restarted my docker image.

I am trying to verify the logs it created, but not able to get the location of log file.

Can you please help on it.

---

<div class="post-metadata">

### Author: ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)
#### Post date: [September 5, 2023, 3:07pm UTC](https://forum.weaviate.io/t/where-is-the-weaviate-log-file-location/617/2 "2023-09-05T15:07:01Z")

</div>

Hi!

Weaviate will log at stdout.

This means that you can check the log running, for example:

```auto
docker compose logs -f --tail 10 weaviate

```

if you know the id of your container (`docker ps` will show), you can discover where the .json file will be in your host system by issuing:

```auto
docker inspect --format='{{.LogPath}}' <id-of-your-weaviate-container>

```

Let me know if that helps!

Thanks!

---

<div class="post-metadata">

### Author: ![kranthi\_kumar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/kranthi_kumar/32/433_2.png) [@kranthi\_kumar](https://forum.weaviate.io/u/kranthi_kumar)
#### Post date: [September 6, 2023, 10:02am UTC](https://forum.weaviate.io/t/where-is-the-weaviate-log-file-location/617/3 "2023-09-06T10:02:10Z")

</div>

Hello,

Thank you very much … it helped to identify the log location.

Thanks again…!!

---

<div class="post-metadata">

### Author: ![bewakes](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/bewakes/32/3191_2.png) [@bewakes](https://forum.weaviate.io/u/bewakes)
#### Post date: [December 18, 2024, 2:29am UTC](https://forum.weaviate.io/t/where-is-the-weaviate-log-file-location/617/4 "2024-12-18T02:29:46Z")

</div>

That’s helpful.

I want to write logs to a file. Is there an option to set log file? I could not find it.

---

<div class="post-metadata">

### Author: ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)
#### Post date: [December 18, 2024, 2:36pm UTC](https://forum.weaviate.io/t/where-is-the-weaviate-log-file-location/617/5 "2024-12-18T14:36:46Z")

</div>

hi @bewakes !!

Welcome to our community 🤗

I am not sure I understood this question.

Do you want to write logs on the server log stream?

---

<div class="post-metadata">

### Author: ![bewakes](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/bewakes/32/3191_2.png) [@bewakes](https://forum.weaviate.io/u/bewakes)
#### Post date: [December 18, 2024, 4:16pm UTC](https://forum.weaviate.io/t/where-is-the-weaviate-log-file-location/617/6 "2024-12-18T16:16:31Z")

</div>

Hi @DudaNogueira !! Thank you for your prompt reply.

What I needed to do was to stream weaviate logs to grafana via loki. The weaviate instance runs inside docker. It seems that there’s a docker plugin for logging to loki. So, my issue is resolved.

Anyways, thank you weaviate team for creating this wonderful database.

---

<div class="post-metadata">

### Author: ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)
#### Post date: [December 18, 2024, 7:16pm UTC](https://forum.weaviate.io/t/where-is-the-weaviate-log-file-location/617/7 "2024-12-18T19:16:59Z")

</div>

Oh, I see.

You can expose prometheus metrics, as documented here:

> **[Monitoring Weaviate in Production | Weaviate](https://weaviate.io/blog/monitoring-weaviate-in-production)**
>
> Learn about how to monitor Weaviate in production and observe key metrics.

Let me know if this helps!
