Information
Network stream drivers are a layer between various parts of rsyslogd (e.g. the imtcp module) and the transport layer. They provide sequenced delivery, authentication and confidentiality to the upper layers. Drivers implement different capabilities.
StreamDriver must be set to gtls to enable TLS for encrypting syslog traffic.
Solution
Edit rsyslog.conf or a .conf file in /etc/rsyslog.d/ to use gtls :
Example /etc/rsyslog.d/40-forward.conf
# certificate files - just CA for a client
global(DefaultNetstreamDriverCAFile=\"/path/to/contrib/gnutls/ca.pem\")
# set up the action for all messages
action(type=\"omfwd\" protocol=\"tcp\" target=\"s.example.net\" port=\"6514\"
StreamDriver=\"gtls\" StreamDriverMode=\"1\" StreamDriverAuthMode=\"anon\")
Impact:
Users need to know about netstream drivers because they need to configure the proper driver, and proper driver properties, to achieve desired results.