Help! syslog-ng changes file ownership on logs!

You may control the ownership change in config file, like

Example 4-1. Setting log ownership

       destination daemon { file("/var/log/daemon.log" owner("root") group("adm") perm("0640")); }
       

Or you can tell syslog-ng not to touch owner and/or permission with magic values of these options.

Example 4-2. Not setting log ownership

       destination daemon { file("/var/log/daemon.log" owner("-1") group("-1") perm(01000)); }
       

Per default syslog-ng changes the owner and group settings and the permissions of the files to some default values. You might argue that we should set the default not to change them. But this is the old behaviour, and changing it would upset users who depend on this.