Agent properties and selectors
This page lists the properties and selectors available for querying and finding NXLog Agent instances within NXLog Platform. You can build search expressions by combining the supported operators and one or more agent properties to find matching NXLog Agent instances. For example, when viewing agents, setting up auto-enrollment rules, and assigning configuration templates.
Agent properties
Each NXLog Agent instance has several properties containing information about the agent’s operating environment. To those, NXLog Platform adds agent-management properties.
Property name | Description |
---|---|
address |
Host IP address and port number used by the agent to connect to NXLog Platform or null when the agent is offline.
Example: |
agent_label |
The agent label specified during the NXLog Agent installation. |
arch |
CPU architecture of the agent’s host.
Possible values: |
config |
The content of the |
configured |
Configuration status: |
cpu-load |
Average CPU load of the agent process since the start of the process. |
cpu-usage-time |
CPU usage time of the agent process measured in milliseconds since the start of the process. |
enrolled |
Enrollment status of the agent: |
|
Same as |
|
The hostname of the machine that runs NXLog Agent, as reported by NXLog Agent. |
|
The UUID of the agent in UUID Version 1 format. The agent typically reports its ID, but NXLog Platform can generate or overwrite it, for example, to avoid duplication when you create a second agent instance by cloning a VM. |
|
The NXLog Platform IP address and port number to which the agent is connected or null when the agent is offline.
Example: |
|
Amount of RAM used by the agent in bytes. |
|
Same as |
|
Connection status of the agent: |
|
Type of operating system running on the agent’s host.
Possible values: |
|
Operating system type and version.
Example: |
|
The agent’s management status: |
|
UUID of the template assigned to the agent or |
|
Name of the template assigned to the agent or |
|
Version of NXLog Agent.
Example: |
Agent selector operators
You can use the following operators to write selectors for querying and finding agents.
Comparison operators
Comparison operators are binary operators that take the following form:
{expression 1} {operator} {expression 2}
Operator | Alternative spellings | Description |
---|---|---|
|
|
Tests if the property value is equal to the provided value. |
|
|
Tests if the property value is not equal to the provided value. |
|
|
Tests if the property value is less than or equal to the provided value. |
|
|
Tests if the property value is less than the provided value. |
|
|
Tests if the property value is greater than or equal to the provided value. |
|
|
Tests if the property value is greater than the provided value. |
|
|
Tests if the property value matches a wildcard expression. |
|
|
Tests if the property value matches a Rust-style regular expression. |
Logical operators
Logical operators can be unary or binary.
Operator | Alternative spellings | Description |
---|---|---|
|
Inverts (negates) the operators or expressions. Examples:
|
|
|
|
Pairs of sub-expressions connected using this operator must both evaluate to true for the full expression to be true. |
|
|
At least one of the sub-expressions connected using this operator must evaluate to true for the full expression to be true. |
|
The expression is true if the property is equal to one of a list of values. Example: |
|
|
Checks the property for existence or presence of value:
Examples:
|
|
|
True if the property exists. Example: |