1. Home
  2. Docs
  3. ClusterControl
  4. User Guide (CLI)
  5. s9s-log

s9s-log

Table of Contents

View logs.

Usage

s9s log {command} {options}

Command

Name, shorthand Description
−−list, -L Lists all log entries.

Options

Name, shorthand Description
CLUSTER RELATED OPTIONS
−−cluster-id=ID The ID of the cluster to check.
−−cluster-name=NAME The NAME of the cluster to check.
JOB RELATED OPTIONS
--limit=NUMBER Limits the number of log messages printed.
−−offset=NUMBER Controls the relative index of the first item printed.
Attention

The following log-related option has been deprecated since version 2.2.0 (Sept 2024):

  • --from=DATE&TIME
  • --until=DATE&TIME
  • --message-id=ID
  • --log-format=FORMATSTRING
  • --long

 

Examples

List log messages for Cluster ID 1:

$ s9s log \
    --list \
    --cluster-id=1

List log messages for Cluster ID 1 except the 10 last log records:

$ s9s log \
    --list \
    --cluster-id=1 \
    --offset=10

List only the last 20 log messages for Cluster ID 1:

$ s9s log \
    --list \
    --cluster-id=1 \
    --limit=20

List 20 log messages skipping the latest 20 log records for Cluster ID 1:

$ s9s log \
    --list \
    --cluster-id=1 \
    --limit=20 \
    --offset=20
Was this article helpful to you? Yes No