
Multi-Cluster Search View
A HumioMultiClusterSearchView
resource creates a federated search view in LogScale that spans
repositories across one or more clusters. Each view requires at least one
connection to a repository or view, and can include both local connections
(same cluster) and remote connections (different cluster).
Each connection has a clusterIdentity
value that serves as a unique identifier within the view. Set
type to
Local for a repository or view on
the same cluster, or to
Remote for a repository or view on
a different cluster. At most one connection can have
type: Local.
Local connections require
viewOrRepoName, and must not seturlorapiTokenSource.Remote connections require
urlandapiTokenSource.secretKeyRef, which references a Kubernetes secret containing an API token for the remote cluster. Remote connections must not setviewOrRepoName.
You can optionally set a filter on
any connection to restrict which events are included, and add
tags for query-time filtering. The
reserved key clusteridentity cannot
be used as a tag key.
The following shows an example
HumioMultiClusterSearchView resource
with one local connection and one remote connection.
apiVersion: core.humio.com/v1alpha1
kind: HumioMultiClusterSearchView
metadata:
name: example-multiclustersearchview
namespace: logging
spec:
managedClusterName: example-humiocluster
name: example-federated-view
description: Federated search across local and remote clusters
connections:
- clusterIdentity: local-cluster
type: Local
viewOrRepoName: example-repository
- clusterIdentity: remote-cluster
type: Remote
url: https://remote-logscale.example.com
apiTokenSource:
secretKeyRef:
name: remote-cluster-token
key: token
automaticSearch: true
allowDataDeletion: true