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 the IIS logs for individual IIS sites is described here: Moving IIS Log Files (using PowerShell)

Moving IIS Logs
Copy the following code into a text file (e. g. Notepad) and change the path in the second line. Save the file as PS1 by changing the file extension from filename.txt to filename.ps1. Run the file filename.ps1 as administrator on the server where you want to move the log files of all IIS sites.

The script creates D under the specified path – in my example D:\Logs\IIS a directory of the same name for each IIS site. Afterwards the log path for each IIS site will be adapted to the respective directory. In this example, this would be D:\Logs\IIS\SiteName

Import-Module WebAdministration
$LogPath = «D:\Logs\IIS»
foreach($site in (dir iis:\sites\*))
{
New-Item $LogPath\$($site.Name) -type directory
Set-ItemProperty IIS:\Sites\$($site.Name) -name logFile.directory -value «$LogPath\$($site.Name)»
}