Difference between revisions of "Amazon S3 logging"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 10: Line 10:
  
 
* Terraform resource: <code>[[Terraform resource: aws_s3_bucket_logging|aws_s3_bucket_logging]]</code>
 
* Terraform resource: <code>[[Terraform resource: aws_s3_bucket_logging|aws_s3_bucket_logging]]</code>
 +
* [[CLI]]: <code>[[aws s3api put-bucket-logging]]</code>
  
 
Limitations:
 
Limitations:
Line 27: Line 28:
 
* [[AWS S3 Object Lock]]: <code>[[aws s3api put-object-lock-configuration]]</code>
 
* [[AWS S3 Object Lock]]: <code>[[aws s3api put-object-lock-configuration]]</code>
 
* <code>[[logging.s3.amazonaws.com]]</code>
 
* <code>[[logging.s3.amazonaws.com]]</code>
 +
* Nov 2014 [[New Event Notifications for Amazon S3]]: <code>[[s3_bucket_notification]]</code>
 +
* [[Stealth:S3/ServerAccessLoggingDisabled]]
  
 
== See also ==
 
== See also ==

Latest revision as of 05:40, 20 June 2024

Amazon S3 allows users to enable or disable logging. If enabled, the logs are stored in Amazon S3 buckets which can then be analyzed. These logs contain useful information such as:

  • Date and time of access to requested content
  • Protocol used (HTTP, FTP, etc.)
  • HTTP status codes
  • Turnaround time
  • HTTP request message


Limitations:

  • The destination bucket must be in the same AWS Region and AWS account as the source bucket.
  • S3 buckets that have S3 Object Lock enabled can't be used as destination buckets for server access logs
  • Your destination bucket must not have a default retention period configuration.

Recomendations:

News[edit]

Related[edit]

See also[edit]

Advertising: