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:
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
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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-Term | The log collector configurations. See LogCollectorConfigInfo . | |
cpuAverage5Min | float | Short-Term | The CPU average for a five minute period. | ||
diskMax5Min | float | Short-Term | The disk maximum for a five minute period. | ||
ephemeralTimeout | integer | Short-Term | The ephemeral timeout in milliseconds. | ||
errors | [string] | yes | Short-Term | The errors. | |
hostname | string | yes | Short-Term | The hostname. | |
id | string | yes | Short-Term | The unique identifier of the collector, if enrolled. | |
ipAddress | string | Short-Term | The IP address. | ||
lastActivity | string | yes | Short-Term | The last activity recorded. | |
logSources | LogCollectorLogSource | yes | Short-Term | The log collector's log source. See LogCollectorLogSource . | |
machineId | string | yes | Short-Term | The log collector's machine ID. | |
memoryMax5Min | long | Short-Term | The maximum memory usage for a five minute period. | ||
status | LogCollectorStatusType | Short-Term | The status of the log collector. See LogCollectorStatusType . | ||
system | string | yes | Short-Term | The host system. | |
version | string | yes | Short-Term | The version. |