To enable data logging for S3 requests, you can follow these steps:
Sign in to the AWS Management Console and navigate to the S3 section.
Select the bucket for which you want to enable data logging.
Click on the "Properties" tab and then select "Server access logging".
Click on "Edit" and then toggle the button to enable logging for the bucket.
Enter the target bucket where the log data will be stored and specify a prefix if needed.
Choose the logging format (Common Log Format or Amazon S3 Server Access Log Format).
Click on "Save changes" to enable data logging for S3 requests.
Once enabled, S3 will start logging access requests to the specified target bucket, allowing you to track and analyze traffic to your S3 bucket.