system sentries

Retrieves status information for all sentries registered with the Logpresso server.

Command properties

PropertyDescription
Command typeDriver query
Required permissionCluster administrator
License usageNot counted
Parallel executionNot supported
Distributed executionNot supported

Syntax

system sentries

Output fields

FieldTypeDescription
guidstringUnique identifier of the sentry
host_namestringName of the host where the sentry is installed
remote_ipstringRemote IP address of the sentry. Null if disconnected.
is_connectedbooleanCurrent connection status. true if connected
pkg_verstringSentry package name and version (e.g., logpresso-sentry-1.0.0)
descriptionstringSentry description
cpu_usagedoubleCPU usage (%). Null if disconnected.
mem_usagedoublePhysical memory usage (%). Null if disconnected.
disk_usagedoubleUsage of the most-used disk (%). Null if disconnected.
nic_rx_usagedoubleReceive bandwidth usage of the most-used network interface (%). Null if disconnected.
nic_tx_usagedoubleTransmit bandwidth usage of the most-used network interface (%). Null if disconnected.
user_dirstringWorking directory path of the sentry process
cpu_kerneldoubleKernel-mode CPU usage (%). Null if disconnected.
cpu_userdoubleUser-mode CPU usage (%). Null if disconnected.
phy_usedlongUsed physical memory size (bytes). Null if disconnected.
phy_freelongFree physical memory size (bytes). Null if disconnected.
phy_totallongTotal physical memory size (bytes). Null if disconnected.
swap_usedlongUsed swap memory size (bytes). Null if disconnected.
swap_freelongFree swap memory size (bytes). Null if disconnected.
swap_totallongTotal swap memory size (bytes). Null if disconnected.
last_connect_attimestampMost recent connection time
osstringOperating system name
os_verstringOperating system version
archstringCPU architecture (e.g., amd64, aarch64)
jvm_namestringJVM name
jvm_versionstringJVM version
ip_addrsarrayList of IP addresses assigned to the sentry (includes IPv4 and IPv6)
disksarrayList of disk usage information. Each item is a map type.
nicsarrayList of network interface speed information. Each item is a map type.

Error codes

Parsing errors
Error codeMessageDescription
95020no-read-permissionThe user does not have cluster administrator permission
Runtime errors

N/A

Description

The system sentries command retrieves status information for all sentries registered with the Logpresso server. A sentry is an agent installed on a remote host that collects logs.

For connected sentries, real-time CPU, memory, disk, and network interface usage rates and system information (operating system, JVM version, etc.) are available. For disconnected sentries, performance metric fields are null.

The cpu_usage, mem_usage, disk_usage, nic_rx_usage, and nic_tx_usage fields are percentage values rounded to two decimal places.

Cluster administrator permission is required. Running this command without administrator permission causes a parsing error.

Examples

  1. Retrieve all sentry status

    system sentries
    

    Retrieves status information for all registered sentries.

  2. Retrieve disconnected sentries

    system sentries
    | search is_connected == false
    

    Filters and retrieves only sentries that are currently disconnected.

  3. Retrieve sentries with high CPU usage

    system sentries
    | search is_connected == true and cpu_usage >= 80
    | fields guid, host_name, remote_ip, cpu_usage, mem_usage
    

    Retrieves connected sentries with CPU usage at or above 80%.

  4. Retrieve memory usage per sentry

    system sentries
    | search is_connected == true
    | eval mem_used_gb = round(phy_used / 1073741824, 2)
    | eval mem_total_gb = round(phy_total / 1073741824, 2)
    | fields host_name, mem_usage, mem_used_gb, mem_total_gb
    | sort -mem_usage
    

    Converts physical memory usage for connected sentries to GB and sorts by usage rate.