createLogCollectorGroup()

API Stability Short-Term

The createLogCollectorGroup() GraphQL mutation field is used to create a Log Collector group. This is a preview and may be changed.

Syntax

Below is the syntax for the createLogCollectorGroup() mutation field:

graphql
createLogCollectorGroup(
       name: string!, filter: string, 
       configIds: [string!]
    ): LogCollectorGroup!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  createLogCollectorGroup(
         name: "my-lc-group" )
  { id, name }
}
Example Responses
Show:
json
{
  "data": {
    "createLogCollectorGroup": {
      "id": "61ZbSM9Gh1TWiuVw1POrORr98X5EK5ny",
      "name": "my-lc-group"
    }
  }
}

Returned Datatypes

As indicated by the syntax above, this mutation will return data using the datatype, LogCollectorGroup. Below is the parameter of that datatype:

Table: LogCollectorGroup

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 26, 2024
collectorCountinteger   text
configurations[LogCollectorConfiguration]yes Short-TermThe log collector's configurations. See LogCollectorConfiguration.
filterstring  Short-TermThe filter used with the log collector.
idstringyes Short-TermThe unique identifier for the group.
namestringyes Short-TermThe name of the log collector group.
onlyUsesRemoteUpdatesbooleanyes Short-TermWhether the group only uses remove updates.
wantedVersionstring  Short-TermThe wanted version.