sentryswap

Retrieves data pending transmission in the sentry disk swap buffer.

Command properties

PropertyDescription
Command typeDriver
Required permissionNone
License usageExcluded from license aggregation
Parallel executionNot supported
Distributed executionNot supported

Syntax

sentryswap base=STR

Options

base=STR
The unique identifier name of the base server connected to the sentry. The base server refers to the Logpresso server that receives logs from the sentry.

Output fields

FieldTypeDescription
_timetimestampTimestamp of the log.
_loggerstringLogger name.

In addition to the fields above, the original key-value pairs of records in the pending transmission buffer are also output.

Error codes

Parsing errors
Error codeMessageDescription
invalid-base-The base server specified in the base option does not exist.
Runtime errors

N/A

Description

The sentryswap command queries data swapped to the sentry transmission queue when a sentry is installed on the same host as the Logpresso server. Because the sentry transmission queue is managed separately per base server, you must specify the target base using the base option.

This command is typically used to check the number of records pending in the transmission queue when a backlog occurs, or to back up the data in the queue and then delete the swap to restore the system connection state.

Data is retrieved starting from after the last read block.

Note
The `sentryswap` command is available only when Logpresso and the sentry are installed on the same host.

Examples

  1. Retrieve swap data for a specific base server

    sentryswap base=main
    

    Retrieves the pending swap data for the main base server.