Skip to content
Discussion options

You must be logged in to vote

If you're running open-source LiteLLM without an Enterprise license, you don't need the paid /spend/report endpoints to establish a clean, compliance-safe retention and archiving lifecycle.

The key is treating LiteLLM_SpendLogs (audit log), the daily aggregation tables (what the UI graphs query), and the running spend counters as three separate concerns.

Here is the exact maintenance workflow you can run synchronously from a cron or migration script during your accounting cut-off:

1. Synchronous Archival (Before Purging)

Export the closed billing window directly to your cold storage / CSV / S3 bucket so you retain 100% compliance auditability without keeping rows in live Postgres:

-- Dump…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hpcpony
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants