vitessio/vitess · error

syslog is not supported on windows

Error message

syslog is not supported on windows

What it means

vtorc supports writing audit log entries to syslog in addition to normal logging, but the Windows build (audit_dao_nosyslog.go) has no syslog support. EnableAuditSyslog is a stub that immediately returns this error.

Source

Thrown at go/vt/vtorc/inst/audit_dao_nosyslog.go:27

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/

package inst

import (
	"errors"
)

// EnableAuditSyslog enables, if possible, writes to syslog. These will execute _in addition_ to normal logging
func EnableAuditSyslog() (err error) {
	return errors.New("syslog is not supported on windows")
}

func syslogMessage(logMessage string) bool {
	return false
}

View on GitHub (pinned to 01a25a7d17)

Solutions

  1. Disable syslog audit output in the vtorc configuration on Windows
  2. Use file-based audit logging instead (audit file destination settings)
  3. Run vtorc on a Linux host where syslog is supported

Example fix

// before
vtorc --audit-to-syslog=true ...
// after
vtorc --audit-to-syslog=false --audit-to-file /var/log/vtorc-audit.log ...
Defensive patterns

Strategy: validation

Validate before calling

if runtime.GOOS == "windows" && auditToSyslog {
    return errors.New("syslog auditing unsupported on windows")
}

Prevention

When it happens

Trigger: Configuring vtorc with audit syslog enabled (e.g. --audit-to-syslog or the OrcAuditToSyslog setting) on a Windows build, so run() calls EnableAuditSyslog().

Common situations: Running vtorc on Windows with a config copied from a Linux deployment that enabled syslog auditing.

Related errors


AI-assisted analysis of vitessio/vitess@01a25a7d17 (2026-09-01). Data as JSON: /api/errors/461e7bb644d31a3b. Report an issue: GitHub.