0

I need help to fetch logs from AWS CloudTrail via rest API.How can I get this rest API ? I will use restAPI in my python code.

Ajay Gupta
  • 127
  • 3
  • 13
  • 1
    These are just files in S3 [according to the docs](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html). Take a look at [this post](https://stackoverflow.com/questions/36205481/read-file-content-from-s3-bucket-with-boto3) for guidance on reading the file from S3. – stdunbar Jul 19 '19 at 14:26
  • You can get the CloudTrail files from S3 via the S3 REST API: https://docs.aws.amazon.com/AmazonS3/latest/API/Welcome.html – Martin Löper Jul 21 '19 at 21:52

0 Answers0