We usually play with the published map services and resources logs via the ArcGIS Manager interface to check and change the settings for logging. As a good practice we set it to a non-root drive so, it can't accidently take-up all the drive space. However, I noticed that we have another location 'C:\Program Files\ArcGIS\Server\framework\etc\service\logs\' where service.log and service_error.log files are generated and they are taking up ~38GB of root drive space which is causing trouble in terms of how to manage it.
I tried to check ArcGIS Server documentation and the forum here if I can get any clue but couldn't find anything. Please share your thoughts if there is any way we can manage and control these log files and if there is any insight why are they growing so big in size as the ArcGIS Server should keep a check on them?
We recently upgraded from AGS 10.3.1 to 10.5.1 on Windows 2012 R2, but I am sure the log files were there before upgrade as I checked them before starting upgrade. Thanks in advance for your help and time.