{"record":{"id":"461e7bb644d31a3b","repo":"vitessio/vitess","slug":"syslog-is-not-supported-on-windows","errorCode":null,"errorMessage":"syslog is not supported on windows","messagePattern":"syslog is not supported on windows","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"go/vt/vtorc/inst/audit_dao_nosyslog.go","lineNumber":27,"sourceCode":"\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n*/\n\npackage inst\n\nimport (\n\t\"errors\"\n)\n\n// EnableAuditSyslog enables, if possible, writes to syslog. These will execute _in addition_ to normal logging\nfunc EnableAuditSyslog() (err error) {\n\treturn errors.New(\"syslog is not supported on windows\")\n}\n\nfunc syslogMessage(logMessage string) bool {\n\treturn false\n}\n","sourceCodeStart":9,"sourceCodeEnd":33,"githubUrl":"https://github.com/vitessio/vitess/blob/01a25a7d176f94613b8d59d799f438380a8760e4/go/vt/vtorc/inst/audit_dao_nosyslog.go#L9-L33","documentation":"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.","triggerScenarios":"Configuring vtorc with audit syslog enabled (e.g. --audit-to-syslog or the OrcAuditToSyslog setting) on a Windows build, so run() calls EnableAuditSyslog().","commonSituations":"Running vtorc on Windows with a config copied from a Linux deployment that enabled syslog auditing.","solutions":["Disable syslog audit output in the vtorc configuration on Windows","Use file-based audit logging instead (audit file destination settings)","Run vtorc on a Linux host where syslog is supported"],"exampleFix":"// before\nvtorc --audit-to-syslog=true ...\n// after\nvtorc --audit-to-syslog=false --audit-to-file /var/log/vtorc-audit.log ...","handlingStrategy":"validation","validationCode":"if runtime.GOOS == \"windows\" && auditToSyslog {\n    return errors.New(\"syslog auditing unsupported on windows\")\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Disable syslog audit options on Windows builds","Use file-based auditing where syslog is unavailable","Keep platform-specific flags in OS-specific deployment configs"],"tags":["vtorc","windows","syslog","platform"],"backgroundTag":"syslog-not-supported-on-windows","analyzedSha":"01a25a7d176f94613b8d59d799f438380a8760e4","analyzedAt":"2026-09-01T17:28:30.605Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}