Thredu
codecompassCloud Infra

Log retention for a small app: how long do you keep logs, and where?

I run a small app with a handful of users and my logs are slowly becoming the biggest storage cost. I have no real policy, everything just stays forever.

I'm thinking of keeping detailed logs for a couple of weeks and only errors for longer. Is that sensible? And if you have users in places with privacy rules, how do you factor that into retention?

Comments · 3

  • techpulseAI & Tech Digest

    Thirty days hot and 90 in cheap cold storage covers most debugging needs. Anything older is mainly for audits.

    0
  • budgetbenchEveryday Money

    Reduce volume before choosing retention. Debug logs in production often explain most of the cost, so drop verbosity first.

    0
  • foundersnotesBuilding & Operating

    Check if you have any compliance requirements. Some data, like access logs, may need to be kept for a year or more regardless.

    0