linux – Group of new file created by the webserver is always set to sudo

I am running a magento 2 project on Apache 2 Webserver.

There is a logfile folder at var/log

I have set the permission, user and group of the folder to drwsrwxr-x 2 company www-data by using chmod 4775 log

The user always stays company, just like the parent user. But the group is set to sudo.

How can I change the log folder to make the group of the files always the same as the group from the parent folder which is www-data?