Configure logging
You can customize the module using the spec.distribution.modules.logging object in the following way:
-
type: selects the logging stack. Choosingnonewill disable the centralized logging. Choosingopensearchwill deploy and configure the Logging Operator and an OpenSearch cluster (can be single or triple for HA) where the logs will be stored. Choosinglokiwill use a distributed Grafana Loki instead of OpenSearch for storage. ChoosingcustomOuputthe Logging Operator will be deployed and installed but with no local storage, you will have to create the needed Outputs and ClusterOutputs to ship the logs to your desired storage. -
minio.storageSize: if the backend type for the module isminio, it will install a minio instance inside the cluster. Here you specify the size for the bucket that's dedicated to the logging storage.infoThe minio instance will have 3 replicas with 2 PVCs each, so the storage size you specify will be multiplicated by a factor of 6.
-
minio.rootUser: here you can provide custom credentials for the Minio root user. -
lokiobject: if you specifiedlokiintype, this object lets you customize some aspects of it.backend: the storage backend type for Loki.minio(default) will use an in-cluster MinIO deployment for object storage,externalEndpointcan be used to point to an external S3-compatible object storage instead of deploying an in-cluster MinIO.externalEndpoint: if you specifiedexternalEndpointas backend, you need to specify this object to provide the needed credentials to your S3-compatible bucket.resources: with this object, you can customize Loki's Pods resources.
-
opensearchobject: if you specifiedopensearchintype, this object lets you customize some aspects of it.type: you can choose betweensingleandtriple, which will install a single-instance or a HA triple-instance Opensearch respectively.storageSize: here you can specify the size of the PVCs used by Opensearch's Pods.resources: with this object, you can customize Opensearch's Pods resources.
-
customOutputs: when using thecustomOutputsloggingtype, you need to manually specify the spec of the several Output and ClusterOutputs that the Logging Operator expects to forward the logs collected by the pre-defined flows. Here you should follow theOutput'sspecobject schema. You can find more info about theFlows provided by SD here.