Actions
Feature #43973
closedThere is a need for a wrapper to fetch the journald logs
% Done:
0%
Source:
Tags:
Backport:
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.
Updated by Michael Fritch about 4 years ago
What if we re-introduce the `cephadm logs` command, only this time we rely on `journald` only (and avoid `podman logs`)?
Likewise, we could allow for arbitrary `journalctl` args to be passed through:
cephadm logs --name <name> -- <journalctl args...>
For example to get output in json format:
cephadm logs --name <name> -- -n2 -o json
Updated by Sebastian Wagner about 4 years ago
- Status changed from New to In Progress
Updated by Sage Weil about 4 years ago
- Status changed from In Progress to Resolved
Actions