It is a good advice but the OP is asking for web log files not ssh and any other logs. You cannot remove the attack surface when the app/service is served via http
Remove? Probably not. There are many options for minimizing the attack surface with http.