Skip to content

Commit

Permalink
permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Simplychee committed Dec 6, 2023
1 parent e938365 commit 603213b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/user-guide/data-hub/archive-restore/set-s3-permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,44 @@ Logz.io can archive and restore your logs with these credentials.

Setting up your Power search permissions:

1. Navigate to your AWS account and search for S3.

![Select S3](https://dytvr9ot2sszz.cloudfront.net/logz-docs/power-search/select-s3.png)

2. Choose the relevant bucket on which you want to apply these permissions. **It should be the same bucket you've used when setting up your S3 permissions.** Once inside, click on Permissions, scroll down to **Bucket policy** and click on **Edit**.

![Select S3](https://dytvr9ot2sszz.cloudfront.net/logz-docs/power-search/permission-policy.png)

3. Paste the following code inside the policy. **Replace the `XXX` with your bucket's name.**

*If you don't have an existing policy, paste this code inside the editor. Otherwise, add this code to the bottom of the page.*

```yaml
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::406095609952:user/search-archive-restore-user"
},
"Action": [
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::XXX", #replace XXX with your bucket's name
"arn:aws:s3:::XXX/*" #replace XXX with your bucket's name
]
}
]
}
```


![Edit bucket policy](https://dytvr9ot2sszz.cloudfront.net/logz-docs/power-search/edit-bucket-policy.png)

4. Click on **Save changes** to apply the new policy. It might take a few minutes for Logz.io to identify the new policy.


Once the new policy is updated, you'll be able to [use Power search](/docs/user-guide/data-hub/archive-restore/restore-archived-logs#apply-power-search-and-filters) when restoring archived logs.

0 comments on commit 603213b

Please sign in to comment.