rsyslog / rsyslog-doc

documentation for the rsyslog project
Other
98 stars 250 forks source link

Sample syslog.conf is missing PermittedPeer #983

Open Jacob-Burckhardt opened 2 years ago

Jacob-Burckhardt commented 2 years ago

This documentation mentions the use of PermittedPeer, but fails to say where to put it. Please add PermittedPeer to the quote below which comes from the same link. Add PermittedPeer to the imtcp section.

module(load="imuxsock") # local messages
module(load="imtcp" # TCP listener
    StreamDriver.Name="gtls"
    StreamDriver.Mode="1" # run driver in TLS-only mode
    StreamDriver.Authmode="anon"
    )

# make gtls driver the default and set certificate files
global(
    DefaultNetstreamDriver="gtls"
    DefaultNetstreamDriverCAFile="/path/to/contrib/gnutls/ca.pem"
    DefaultNetstreamDriverCertFile="/path/to/contrib/gnutls/cert.pem"
    DefaultNetstreamDriverKeyFile="/path/to/contrib/gnutls/key.pem"
    )

    # start up listener at port 6514
    input(
    type="imtcp"
    port="6514"
    )