We have always maintained a very simple access log format, however that format is very limited in the information it displays - it's effectively an audit log, and provides insufficent data to allow effective issue analysis. Additionally, it can be hard to see the sequence and relationship of events, and worse, due to threading, many operations log messages are interleaved causing noise and confusion.
I propose that our logging structure for access be rewritten such that:
Not only does this already have performance benefits (no locking during operations to the log, no need to check log levels etc), it has many human benefits - all data for an operation are in a single coherent package, we can provide detailed and relevant information always, and it will make many aspects of debugging an diagnosis much easier to understand.
From this would would not only be able to have information at a highlevel about events like the current SRCH, BIND, RESULT messages, but we could include records of plugin timing, filter application, query optimisation and more, at very little cost to the logging overhead due to the packaged and coherent nature. It would help QE and support a lot, as well as our debugging.
https://pagure.io/389-ds-base/pull-request/50252#comment-85208
Metadata Update from @mreynolds: - Custom field origin adjusted to None - Custom field reviewstatus adjusted to None - Issue set to the milestone: 1.4.2
https://pagure.io/389-ds-base/issue/50377
Metadata Update from @firstyear: - Issue assigned to firstyear
It would also be nice if the new logging could also report all requested controls (deref, pwpolicy, etc)
@mreynolds I agree. deref could create perforamce issue, having this info will accelerate diag
For reference this ticket should also take into account the following ticket
https://pagure.io/389-ds-base/issue/50280
Metadata Update from @mreynolds: - Issue priority set to: normal - Issue set to the milestone: 1.4.4 (was: 1.4.2)
https://pagure.io/389-ds-base/issue/48365
http://www.port389.org/docs/389ds/design/logging-performance-improvement.html
Yeah, I'm hoping to come back to this soon :)
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/3409
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix - Issue status updated to: Closed (was: Open)