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.
Category:
cephadm (binary)
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.
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
- Affected Versions v15.0.0 added
- Pull request ID set to 33089
- Assignee set to Michael Fritch
- Status changed from New to In Progress
- Status changed from In Progress to Resolved
Also available in: Atom
PDF