API Stability Short-Term

The getLogCollectorDetails() GraphQL query to get the LogCollector's details. This is a preview, though, and subject to change.

Syntax

Below is the syntax for getLogCollectorDetails():

graphql
getLogCollectorDetails(
      machineId: string!
   ): LogCollectorDetails

Here's an example of how this query field might be used:

Show:
graphql
query {
  getLogCollectorDetails(machineId: "123")
     {id, hostname, ipAddress,
      configurations {id, name, assignment} }
}

Returned Datatypes

For LogCollectorDetails, there are a couple possible values returned, which are listed below.

Table: LogCollectorDetails

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: Mar 26, 2025
configurations[LogCollectorConfigInfo]yes Short-TermThe log collector configurations. See LogCollectorConfigInfo.
cpuAverage5Minfloat  Short-TermThe CPU average for a five minute period.
diskMax5Minfloat  Short-TermThe disk maximum for a five minute period.
ephemeralTimeoutinteger  Short-TermThe ephemeral timeout in milliseconds.
errors[string]yes Short-TermThe errors.
hostnamestringyes Short-TermThe hostname.
idstringyes Short-TermThe unique identifier of the collector, if enrolled.
ipAddressstring  Short-TermThe IP address.
lastActivitystringyes Short-TermThe last activity recorded.
logSourcesLogCollectorLogSourceyes Short-TermThe log collector's log source. See LogCollectorLogSource.
machineIdstringyes Short-TermThe log collector's machine ID.
memoryMax5Minlong  Short-TermThe maximum memory usage for a five minute period.
statusLogCollectorStatusType  Short-TermThe status of the log collector. See LogCollectorStatusType.
systemstringyes Short-TermThe host system.
versionstringyes Short-TermThe version.