-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include timestamps in the mdsip "errors" log file #2683
Comments
@joshStillerman also suggested including the session id for the mdsip connection. |
Resurfacing this for visibility #2619 . I know it's different functionality, but we also would benefit from improved logging and can weigh in on what we encounter (eg. the ability to attribute who did what that broke something via say the PID for an error and the user whose access is associated with that PID). |
Can we also add the username that the mdsip session belongs to into the Trying to associate an error message with the user that produced it is currently quite difficult. |
Hi @sflanagan and @ModestMC, Adding the I haven't looked at the code yet, so don't know what is possible. But I do know that analyzing the existing Let me know if you want this upgraded to a Thanks, |
@mwinkel-dev I can't speak for Sean offhand, but I do think this could potentially be very useful. My thought (if you're open to it) is that before we try to decide whether this is something that should be US Priority, it'd be good to know how much work it would be to pull off. Would you be willing to spend 15-30 minutes looking into the underlying code that writes these logs and trying to evaluate how much work it'd be to implement? We know you guys have plenty of things to do. If it turns out this gets ugly, we call it a wash or find a compromise, but if you think it's not to bad I think we could sign on to it. Cheers, |
Hi @ModestMC, I glanced at the logging code in November 2024 while researching Issue #2649. At that time, I noticed that the Thus, my hunch (perhaps wrong) is that upgrading However, adding the other desired attributes (process ID, user, -MarkW |
Hey @mwinkel-dev, We agree that it will be some work to incorporate the other desired attributes (process ID, user, session ID, etc) in the log file; is there any reason you couldn't include timestamps at least in the interim? Perfect is the enemy of good. Thank you for putting in the work that you do. -Mitchell |
Hi @ModestMC, Thanks for the recent post indicating that GA wants a fix for this issue. I have therefore upgraded this to "US Priority". Work on this issue will start in a day or two. Because this involves the After a preliminary investigation is done, I will update this GitHub issue with two estimates:
Note that the complete fix will probably involve two PRs, one for each option listed above. GA can then decide if it makes sense to wait for both PRs so they can be included in a single release of |
Hey @mwinkel-dev, I wouldn't go so far as to say this fix is 'needed'; the hope is that just adding timestamps is lowhanging fruit that would be easy to incorporate without breaking things. If it turns out this will be time consuming, it should not delay the ga_atlas fixes for the dispatcher issues. I believe Sean is planning to update Atlas tomorrow, so my guess is that it'll be food for the next update. It might be good to make a separate issue for major log improvements like connection/process ID and user, as I think they're an extension of this issue's scope (make no mistake, we still think they're very, very good ideas). |
Something we wondered today; is it possible to have the logs include which user accessed a particular tree? Would also be nice to toggle such an option on and off |
That is an interesting idea. If we go to using the system logs and journalctl they will be organized by connection / service. Regardless maybe a tool could be written to filter the agrigate of them. |
Affiliation
MIT PSFC
Description
Mdsip writes to two log files:
access
anderrors
. (These log files are typically located in/var/log/mdsplus/mdsipd
.) Theaccess
file has timestamps for each log record, however theerrors
file does not. Having timestamps on theerrors
log records can be useful for troubleshooting some issues (e.g., thousands of mdsip connections in a day resulting in huge log files).Example
See the timestamps in the
access
log file.Additional context
Might be good to enhance both log files so they can easily be parsed by various tools (Python, spreadsheets, log file analysis tools. and so forth).
The text was updated successfully, but these errors were encountered: