Implementing Audit Logs for Self-Hosted OSS #11597
-
Describe your questionI want to implement audit logs feature on my own. I think this is feasible because Langfuse OSS is 'free' licensed, but I want to clarify the licensing boundaries before proceeding. What I've FoundLooking at the codebase, I see:
So the audit log infrastructure (database table, write function, API router) is part of the free-license. The audit events are already being written to the database when actions occur (creating prompts, score configs, API keys, etc.). Only the viewer UI is under the EE license. QuestionIf the above is correct, would Option A be acceptable?:
Langfuse Cloud or Self-Hosted?Self-Hosted If Self-Hostedlatest If Langfuse CloudNo response SDK and integration versionslatest Pre-Submission Checklist
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Based on the available sources, your understanding is correct. The Langfuse licensing model explicitly permits modifying and extending the MIT-licensed core code without using Enterprise Edition modules(1). A Langfuse maintainer has confirmed that implementing features similar to Enterprise functionality by modifying the open-source code—without using or circumventing any protected Enterprise Edition modules (code under the The audit logs infrastructure is part of the MIT-licensed core. While the Option A appears permissible based on the licensing guidance. You can use the existing MIT-licensed infrastructure ( The audit log system captures actor information (User ID or API Key ID), resource details (resource type and ID), actions performed, context (organization ID, project ID, role), state capture (before/after states as JSON), and timestamps(4). For the open source version, audit log entries are collected in the database, but there's no official API or UI to access them without an Enterprise license(4). Accessing them directly requires querying the database yourself(4). Key consideration: While modifying the tRPC router to remove entitlement checks is technically within your rights under the MIT license, ensure you're not inadvertently using any 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
Based on the available sources, your understanding is correct. The Langfuse licensing model explicitly permits modifying and extending the MIT-licensed core code without using Enterprise Edition modules(1).
A Langfuse maintainer has confirmed that implementing features similar to Enterprise functionality by modifying the open-source code—without using or circumventing any protected Enterprise Edition modules (code under the
/eefolder or gated by the license key mechanism)—would not constitute a breach of licensing terms(2).The audit logs infrastructure is part of the MIT-licensed core. While the
audit_logstable exists and collects data in the open source version, the audit log viewer a…