Creating 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 to be search as part of the multi-cluster view. Connections can either be local or remote. A local connection accesses data from the cluster where the multi-cluster view was created. A remote connection accesses data from a remote cluster.


Configuring multi-cluster views requires use of the GraphQL interface to LogScale. For guidance on use 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 use the createView() mutation:

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.

Once you've created a multi-cluster view there are two types of connections you can add the connections to remote and local.