yah, We haven’t any such related implementation in REST module right now.
Also, I would send a PR to openmrs-core adding a privilege check for accessing the server logs (even though you’d still want to add the check in the REST module so that you don’t have to wait for people to upgrade to the latest OpenMRS core just for this).
I agreed with you. I will add a privilege check at the REST endpoint right now to make this process easy and then I will send a PR to the OpenMRS-Core with the required privilege check. I have required the
VIEW_ADMIN_FUNCTIONS privilege to retrieve the server logs. So the following method will help me to implement this privilege check.