// Module is included in the following assemblies:
//
// * observability/logging/log_storage/installing-log-storage.adoc

:_mod-docs-content-type: PROCEDURE
[id="logging-loki-storage-gcp_{context}"]
= {gcp-full} storage

.Prerequisites

* You installed the {loki-op}.
* You installed the {oc-first}.
* You created a link:https://cloud.google.com/resource-manager/docs/creating-managing-projects[project] on {gcp-first}.
* You created a link:https://cloud.google.com/storage/docs/creating-buckets[bucket] in the same project.
* You created a link:https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account[service account] in the same project for {gcp-short} authentication.

.Procedure

. Copy the service account credentials received from {gcp-short} into a file called `key.json`.

. Create an object storage secret with the name `logging-loki-gcs` by running the following command:
+
[source,terminal,subs="+quotes"]
----
$ oc create secret generic logging-loki-gcs \
  --from-literal=bucketname="<bucket_name>" \
  --from-file=key.json="<path/to/key.json>"
----
