Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1509374 - [RADOS]: "ceph log last" is not fetching exact number of lines specified
[RADOS]: "ceph log last" is not fetching exact number of lines specified
Status: POST
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: RADOS (Show other bugs)
3.0
x86_64 Linux
unspecified Severity low
: rc
: 3.*
Assigned To: Kefu Chai
ceph-qe-bugs
Bara Ancincova
:
Depends On:
Blocks: 1494421
  Show dependency treegraph
 
Reported: 2017-11-03 12:07 EDT by shylesh
Modified: 2018-02-22 07:26 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Known Issue
Doc Text:
.`ceph log last` does not display the exact number of specified lines The `ceph log last <number>` command shows the specified number of lines from the cluster log and cluster audit log, by default located at `/var/log/ceph/<cluster-name>/.log` and `/var/log/ceph/<cluster-name>.audit.log`. Currently, the command does not display the exact number of specified lines. To work around this problem, use the `tail -<number> <log-file>` command.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Comment 4 Kefu Chai 2017-11-06 11:04:44 EST
> `tail <number> <log-file>` command.

the command is 

tail -<number> <log-file>

and this is not accurate. for cluster log, <log-file> is by default /var/log/ceph/${cluster_name}.log, for audit log, /var/log/ceph/${cluster_name}.audit.log

they are configurable using "mon_cluster_log_file". in the form of 

default=/var/log/ceph/$cluster.$channel.log,cluster=/var/log/ceph/$cluster.log

see http://docs.ceph.com/docs/master/rados/troubleshooting/log-and-debug/.

Note You need to log in before you can comment on or make changes to this bug.