Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/grafana-cloud/send-data/logs/export/cle-amazon_s3.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana-cloud/send-data/logs/export/cle-amazon_s3/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
Export to Amazon S3
You can use the Cloud Log Export feature to export your logs from Grafana Cloud Logs to your own long-term storage on Amazon S3 storage.
Before you begin
Before you begin you need the following:
- Amazon Cloud Identity and Access Management (IAM) role
- If you are creating a versioned bucket you also need:
- GetObjectVersion permission
- GetObjectVersionAttributes permission
- BUCKET_NAME
- BUCKET_REGION
- GRAFANA_PRINCIPAL_ARN
Steps
To create an Amazon S3 logs export bucket, complete the following steps:
- In Grafana, click Administration > Plugins in the side navigation menu to view installed plugins.
- Search for Cloud logs exporter.
- On the Cloud Logs Export screen, click Set up a bucket.
- On the Create a Logs Export Bucket page, select Amazon S3 as your target cloud provider.
- Create an S3 bucket to export your logs to using the example code.
- Grant the Cloud Logs Export service access to the bucket by creating and attaching a bucket policy statement.
- Edit your policy statement to include the sample code. The wizard provides sample code for both a versioned bucket and a non versioned bucket.
- Apply the updated policy. The wizard provides a sample AWS command that you can modify.
- Specify your bucket details.
- Specify a Bucket Name.
- Select the Bucket Region from the menu.
- Click Test. Grafana tests if the exporter has access to the cloud bucket. You should see the message “Bucket connection was successful.”
- If the validation passes, click Submit to create the bucket.
Was this page helpful?
Related resources from Grafana Labs


