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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pcs_logs_journalctl"
}
}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) |