Reminder that Mattermost's f/oss self-hosted version embeds segment.io phone-home spyware on by default which must be disabled with a barely-documented env var (called "diagnostics").
Every config setting has an equivalent env var option.
You can either use an env var, or change the setting via system console, or directly change your config.json file - LogSettings.EnableDiagnostics = false.