Exporting access log

Exporting access logs to the S3 bucket.

Requirements

  • AMIMOTO Managed account
  • AWS S3 bucket to export access log

Setting up

1. log in to AMIMOTO Dashboard

https://go.amimoto-ami.com/

2. Click [Manage] of target server from the server list

3.  Click the target website

4. Click the "Logs" menu

5. Input bucket name and choose the region

  • S3 bucket name: Input the name of the bucket to export access log.
  • S3 bucket domain: Choose the region where bucket available.
Sample settings
S3 bucket name:  REPLACE-WITH-YOR-BUCKET-NAME
S3 bucket domain: s3-us-east-1.amazonaws.com 
 
Click  [Next] to continue after settings them.

6. Copy bucket policy

Copy showed S3 bucket policy to set.

Sample policy

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::022646323280:root"
},
"Action": [
"s3:GetBucketAcl",
"s3:PutBucketAcl"
],
"Resource": "arn:aws:s3:::REPLACE-WITH-YOR-BUCKET-NAME"
}
]
}

7. Set the bucket policy to S3 bucket

Login to AWS console, navigate to the bucket and paste the copied policy, then save changes.

8. Back to AMIMOTO dashboard again, and click [Submit] 

Never forget to check "I've updated my bucket policy" checkbox.

9. All set

If you get "Succeeded to update", all setting are done.

Make sure the value of "S3 bucket name" and "Status" is Enabled before leaving the page.