geostore icon indicating copy to clipboard operation
geostore copied to clipboard

Cloudwatch log group should expire after a set amount of time time in CI

Open Jimlinz opened this issue 3 years ago • 2 comments

Enabler

So that CI logs are searchable, we want to expire Cloudwatch logs after a [group agreed] set amount of time. Logs created by CI are currently set to never expire. This adds up overtime, making searching difficult (AWS only loads up to 10,000 log groups by default). More logs will be created as the product grows, which will also incur additional costs to keep them forever.

Acceptance Criteria

  • [ ] Logs expire after X amount of time
  • [ ] Most recent logs (~ last 3 weeks) are easily searchable via Cloudwatch (AWS Console)

Jimlinz avatar Nov 01 '22 03:11 Jimlinz

What about ElasticSearch? Do we need logs stored at all?

billgeo avatar Nov 01 '22 20:11 billgeo

Logs going to ElasticSearch is managed here (I think): https://github.com/linz/elasticsearch-config/tree/master/config/li/ilm

Jimlinz avatar Nov 01 '22 23:11 Jimlinz