# Trying to get VW to write out logs to /data/

**URL:** <https://vaultwarden.discourse.group/t/trying-to-get-vw-to-write-out-logs-to-data/4755>\
**Category:** Help\
**Created:** [July 1, 2025, 8:58pm UTC](https://vaultwarden.discourse.group/t/trying-to-get-vw-to-write-out-logs-to-data/4755 "2025-07-01T20:58:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![efp](https://avatars.discourse-cdn.com/v4/letter/e/df705f/32.png) [@efp](https://vaultwarden.discourse.group/u/efp)\
**Post date:** [July 1, 2025, 8:58pm UTC](https://vaultwarden.discourse.group/t/trying-to-get-vw-to-write-out-logs-to-data/4755/1 "2025-07-01T20:58:22Z")

</div>

Hi vaultwarden community,

I’m having a problem getting a log file written out to the file system by the docker container. In my docker compose I have a LOG\_FILE:data/vaultwarden.log entry declared under environment, but no file is ever made at that path. I saw that in the past, users noted that having a slash before data breaks this, but removing the slash has not made a difference.

Vaultwarden does have read/write permissions on it’s /data mount, which is on the local file system of the docker host and not in a docker virtual disk.

Any ideas?

Thanks!

---

<div class="post-metadata">

**Author:** ![stefan0xC](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/stefan0xc/32/1765_2.png) [@stefan0xC](https://vaultwarden.discourse.group/u/stefan0xC)\
**Post date:** [July 1, 2025, 9:52pm UTC](https://vaultwarden.discourse.group/t/trying-to-get-vw-to-write-out-logs-to-data/4755/2 "2025-07-01T21:52:29Z")

</div>

> [@efp](#):
>
> LOG\_FILE:data/vaultwarden.log

With the map syntax you would need a space after the colon. Cf.

> **[Services top-level elements](https://docs.docker.com/reference/compose-file/services/#environment)**
>
> Explore all the attributes the services top-level element can have.
