Skip to content

Commit

Permalink
Increase retention of Elasticsearch domain error logs (#5557)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsotirho-ucsc committed Sep 28, 2023
1 parent 172981b commit 6ff761b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions src/azul/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ def manifest_expiration_margin(self) -> float:

audit_log_retention_days = 180 # FedRAMP mandates 90 days

verbose_log_retention_days = 30

@property
def es_timeout(self) -> int:
return int(self.environ['AZUL_ES_TIMEOUT'])
Expand Down
5 changes: 1 addition & 4 deletions terraform/elasticsearch.tf.json.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
"aws_cloudwatch_log_group": {
f"{log}_log": {
"name": f"/aws/aes/domains/{domain}/{log}-logs",
"retention_in_days":
config.verbose_log_retention_days
if log == 'error' else
config.audit_log_retention_days
"retention_in_days": config.audit_log_retention_days
}
}
} for log in logs.keys()),
Expand Down

0 comments on commit 6ff761b

Please sign in to comment.