Create a Data Lake Backend on OVH Object Storage
Before you can start routing Graylog data to an internal Data Lake, you must first set up your backend storage. This article shows you how to set up a Data Lake storage backend in Graylog using OVH Object Storage.
Warning: Amazon S3, OVH Object Storage, and SysEleven Object Storage are the only supported S3-compatible backend types for a Data Lake. Other S3-compatible storage services are not supported.
You can also use Amazon S3, SysEleven Object Storage, Google Cloud Services (GCS), Azure Blob Storage, or a local network storage to set up your backend.
Prerequisites
Before proceeding, ensure that the following prerequisites are met:
-
You must be a Graylog administrator to set up and manage a Data Lake.
-
To use OVH Object Storage, you must have an existing OVH Object Storage bucket and appropriate access credentials.
Important: Review your Data Lake journal settings before you create this backend, especially data_lake_journal_max_size and data_lake_journal_max_age. Adding or updating these values after your Data Lake is in use can require provisioning additional storage or partitions. See Data Lake Properties for the full list of configurable properties.
Create an OVH Object Storage Backend
To create an OVH Object Storage backend for your Data Lake:
-
Navigate to Data Lake > Internal Data Lake. If you have existing backends, select the Backend tab. Any existing storage backends are displayed here.
-
Select Create Data Lake Backend.
-
Select OVH Object Storage from the dropdown as the Backend Type.
-
Complete configuration details for your OVH Object Storage backend:
Title
Enter a unique and descriptive name for the backend.
Description
Enter a description of the backend.
OVH Endpoint URL
Enter your OVH Object Storage endpoint URL (e.g.
https://s3.gra.io.cloud.ovh.net).Authentication Type
Select the authentication method for accessing OVH Object Storage.
Access Key
Enter your OVH Object Storage access key. This field appears only when you select Key & Secret as the Authentication Type.
Secret Key
Enter your OVH Object Storage secret key. This field appears only when you select Key & Secret as the Authentication Type.
OVH Bucket Name
Enter the name of your OVH Object Storage bucket.
Region
Select the region for your S3-compatible storage provider.
OVH Output Base Path
Enter the base path where the archives should be stored within the OVH bucket.
You can use a single bucket for multiple purposes. For instance, you could use the same bucket for a Data Lake backend and a warm tier snapshot backend. However, if you do, it is important to use different sub folders for each specific use. The base path you set here determines the sub folder structure for this backend.
Important: This value can only be set on backend creation and cannot be changed at a later date!
-
Click Create to complete configuration of the storage backend.
-
Click Activate to make this the active storage backend. You must activate the backend before it can be used for storage. You can have multiple backends defined, but only one can be active. See the warning below about data loss if you are switching from an existing storage backend.
If you need to update settings for the Data Lake, such as changing access credentials, click Edit. You are presented with the same options as on initial creation. As noted, you cannot change the Output Base Path after your initial save, but you can update the other settings.
Change Your Storage Backend
To change your active storage backend:
-
Create a new storage backend or select one you have previously created.
-
Click Activate.
Graylog prompts you to confirm you want to change your storage backend. Graylog recommends you do not change your storage backend! All the data written to the previous storage backend must be deleted before you can switch.
Warning: Deleting Data Lake data requires you to first stop routing data to the Data Lake. Note that if the affected streams are routing only to the Data Lake, you risk losing new data until you complete the process and start routing again with the new storage backend. -
Click Confirm to proceed.
The storage backend has now been switched. As new logs arrive, they are routed to the newly activated Data Lake storage backend.
Delete Backend Data
Before you can switch a storage backend, you must delete any data in the old storage backend. It is recommended that you delete this data with the following steps:
-
Navigate to the Overview tab of Data Lake > Internal Lake Setup.
-
Disable the Data Lake for each stream that is routing data to this backend. Click Data Routing, then toggle the Data Lake to Disabled.
-
Delete the data from each stream.
-
Select More > Delete.
-
Select the Full Delete check box.
-
Click Delete.
-
-
Verify that the message count for all streams hits 0.
Further Reading
Explore the following additional resources and recommended readings to expand your knowledge on related topics:
