pcs_logs_journalctl
Retrieve journalctl logs for Pacemaker and Corosync systemd units to diagnose cluster issues, with filters for time range, priority, and regex patterns.
Instructions
Read journal logs via journalctl; defaults to pacemaker and corosync units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | journalctl -g regex filter | |
| sudo | No | Prefix commands with sudo on the remote host | |
| lines | No | Number of lines (default 200) | |
| since | No | journalctl --since value (e.g., '1 hour ago', '2024-10-01') | |
| units | No | Systemd units (e.g., pacemaker, corosync, pacemaker.service) | |
| until | No | journalctl --until value | |
| cluster | No | Named cluster in config | |
| priority | No | journalctl -p priority (emerg..debug) | |
| timeoutMs | No | SSH command timeout in milliseconds | |
| sshConfigHost | No | OpenSSH Host alias to resolve connection parameters | |
| sshConfigPath | No | Path to OpenSSH config (defaults to ~/.ssh/config) |