# Can I store Event Logs from the web version directly in a file on the server?

**URL:** <https://vaultwarden.discourse.group/t/can-i-store-event-logs-from-the-web-version-directly-in-a-file-on-the-server/4458>\
**Category:** Uncategorized\
**Created:** [February 20, 2025, 10:22am UTC](https://vaultwarden.discourse.group/t/can-i-store-event-logs-from-the-web-version-directly-in-a-file-on-the-server/4458 "2025-02-20T10:22:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrelit3](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@andrelit3](https://vaultwarden.discourse.group/u/andrelit3)\
**Post date:** [February 20, 2025, 10:22am UTC](https://vaultwarden.discourse.group/t/can-i-store-event-logs-from-the-web-version-directly-in-a-file-on-the-server/4458/1 "2025-02-20T10:22:12Z")

</div>

I want to collect and manage logs. For this purpose, the web version has a very convenient event log, but I can’t find it in the application files. Does it exist or does the application directly take data from the database and not store it in collected form? If so, can you provide or point to the part of the code that does this?

---

<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:** [February 20, 2025, 11:44am UTC](https://vaultwarden.discourse.group/t/can-i-store-event-logs-from-the-web-version-directly-in-a-file-on-the-server/4458/2 "2025-02-20T11:44:27Z")

</div>

You can enable the [event logs](https://bitwarden.com/help/event-logs/) with `ORG_EVENTS_ENABLED=true` then events are stored in the database in the `event` table. Cf

> <https://github.com/dani-garcia/vaultwarden/blob/359a4a088a6ddd9577bd695295d91e5abaec66df/src/db/models/event.rs#L15>

I don’t think that we support the public API endpoint mentioned in the Bitwarden help though.

---

<div class="post-metadata">

**Author:** ![andrelit3](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@andrelit3](https://vaultwarden.discourse.group/u/andrelit3)\
**Post date:** [February 20, 2025, 6:29pm UTC](https://vaultwarden.discourse.group/t/can-i-store-event-logs-from-the-web-version-directly-in-a-file-on-the-server/4458/3 "2025-02-20T18:29:17Z")

</div>

I understand. I have records in the DB. But I would like the logs to be written somewhere to a file on the server, in the same format in which I can download them through the web admin panel. I need these logs for administration. You can collect them yourself from the DB, but I hope there are other options
