Create a Multi-Cluster View using GraphQL

Creating a multi-cluster view is a multi-stage process:

  1. Create a Multi-Cluster View. This is a special type of view that is configured to search one or more connections to other repositories.

  2. Create two or more connections to an external view or repository. These connections are searched as part of the multi-cluster view. Connections can be local or remote. A local connection accesses data from the local cluster. A remote connection accesses data from a remote cluster.

Note

You must configure multi-cluster views through the GraphQL interface to LogScale. For guidance on using the API explorer for running GraphQL mutations, see Accessing GraphQL using API Explorer. For guidance on using the command-line, see Accessing GraphQL using a Script or curl.

To create the initial Multi-Cluster View, run the createView() mutation:

graphql
mutation {
  createView(name: "myMultiClusterView", isFederated: true)
}

The parameters are:

  • name

    The name of the view that will be created.

  • isFederated

    Sets the view to be the multi-cluster type, which indicates to LogScale that the configured connections should be used to query data.

After you create a multi-cluster view, add connections to remote or local repositories.