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
- 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
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
- Disable syslog audit options on Windows builds
- Use file-based auditing where syslog is unavailable
- Keep platform-specific flags in OS-specific deployment configs
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
- unix sockets are not supported on windows
- Log file number is zero, cannot detect previous file
- ReadTopologyInstance(%+v): %+v
- ReadTopologyInstance will not act on empty tablet alias
- ForgetInstance(): empty tabletAlias
AI-assisted analysis of vitessio/vitess@01a25a7d17 (2026-09-01).
Data as JSON: /api/errors/461e7bb644d31a3b.
Report an issue: GitHub.