Project

General

Profile

Actions

Feature #43973

closed

There is a need for a wrapper to fetch the journald logs

Added by Sebastian Wagner about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
High
Category:
cephadm (binary)
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

fsid="$(cephadm run ceph fsid)" 
for name in $(cephadm ls | jq -r '.[].name') ; do
  journalctl -u "ceph-$fsid@$name.service" > $name;
done

or

journalctl --field _SYSTEMD_UNIT | grep ceph | xargs -n 1 journalctl -u

is too complex. We should allow users to fetch the logs with a single command.

Actions

Also available in: Atom PDF