I created an S3 bucket then created a Cloudtrail trail for it. I set the trail to record Data Events with this configuration
- eventName startsWith Put
- eventName startsWith Delete
- resources.ARN
I tried uploading files to my bucket via the Java program I created. The upload file works fine but I can't see any "PutObject" eventName in the cloudtrail logs.
When I deleted the object from the bucket using the console, I was able to see a "DeleteObject" eventName in the cloudtrail logs.
Can anyone tell me why the upload action can't be seen in the logs? it seems to be only be logging api calls if it came from the console. When done programmatically (e.g. java) it can't capture it