You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2019. It is now read-only.
w, err:=syslog.Dial("tcp", "192.168.0.51:514", syslog.LOG_ERR, "testtag")
iferr!=nil {
ifn, err:=w.Write([]byte("these are some bytes")); err!=nil {
log.Println("Sent %d bytes to syslog server\n", n)
}
}
to connect to a rsyslog server, and the server is set to $InputTCPServerStreamDriverMode 1, which means it accepts TLS connection only.
The running result is that I was told
Sent 21 bytes to syslog server
but actually it's not the truth. Because the rsyslog server said,
rsyslogd: gnutls returned error on handshake: An unexpected TLS packet was received. [v8.31.0 try http://www.rsyslog.com/e/2083 ]
rsyslogd: gnutls returned error on handshake: An unexpected TLS packet was received. [v8.31.0 try http://www.rsyslog.com/e/2083 ]