By default, all IIS logs are stored on the C: drive. This is not recommended, however, because on the one hand this causes performance loss (depending on the configuration) and on the other hand there is a risk that the system drive will run full and the OS will crash.
How to move SharePoint logs is described here: Moving SharePoint Trace and Usage Logs (using PowerShell)
Logs can be easily moved using PowerShell. The following commands must be executed on each SharePoint server in the SharePoint 2016 Management Shell.
Moving IIS Logs
In the Internet Information Services (IIS) Manager, navigate to the Site for which you want to move the log files. In my example: Portal Home