Menu
Grafana Cloud

Export to Google Cloud

You can use the Cloud Log Export feature to export your logs from Grafana Cloud Logs to your own long-term storage on Google Cloud.

Before you begin

Before you begin you need the following:

  • BUCKET_REGION
  • BUCKET_NAME
  • SERVICE_ACCOUNT_EMAIL

Steps

To create a Google Cloud Storage logs export bucket, complete the following steps:

  1. In Grafana, click Administration > Plugins in the side navigation menu to view installed plugins.
  2. Search for Cloud logs exporter.
  3. On the Cloud Logs Export screen, click Set up a bucket.
  4. On the Create a Logs Export Bucket page, select Google Cloud Storage as your target cloud provider.
  5. Create a GCS bucket to export your logs to. This bucket should be created with uniform bucket level access. The Wizard provides a sample GCS command that you can modify to include your BUCKET_REGION and BUCKET_NAME.
  6. Grant the Cloud Logs Export service access to the bucket by assigning a role Storage Object Admin.
  7. Specify your Bucket Name.
  8. Click Test. Grafana tests if the exporter has access to the cloud bucket. You should see the message “Bucket connection was successful.”
  9. If the validation passes, click Submit to create the bucket.