API Stability Short-Term

The logCollectorConfiguration() GraphQL query returns the configuration for a Log Collector. This is a preview and still under development.

Syntax

Below is the syntax for the logCollectorConfiguration() query field:

graphql
logCollectorConfiguration(
     id: string!
   ): LogCollectorConfiguration

For the input you would enter the unique identifier of the Log Collector within quotes. The returned datatype, logCollectorConfiguration has a few parameters (see Returned Datatype section). Below is an example using this query field:

Show:
graphql
query {
  logCollectorConfiguration(id: "12345") 
  {id, name, modifiedAt, modifiedBy, yaml}
}

Returned Datatypes

LogCollectorConfiguration has a few parameters. Below is a list of them along with a description of each:

Table: LogCollectorConfiguration

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
descriptionstring  Short-TermA description of the Log Collector configuration.
draftstring  Short-TermThe configuration draft.
draftModifiedAtdatetimeyes Short-TermThe date and time of the last draft of the configuration.
idstringyes Short-TermThe unique identifier for the log collector configuration.
instancesintegeryes Short-TermThe number of instances.
isTestRunningbooleanyes Short-TermWhether a test is running.
modifiedAtdatetimeyes Short-TermThe date and time of the current configuration.
modifiedBystringyes Short-TermWho last modified the configuration.
namestringyes Short-TermThe name assigned to the log collector configuration.
versionintegeryes Short-TermThe version used.
yamlstring  Short-TermConfiguration in YAML format.
yamlCharactersCountintegeryes Short-TermThe YAML character count.