action(type="omfwd"queue.type="linkedlist"queue.filename="example_fwd"action.resumeRetryCount="-1"queue.saveOnShutdown="on"StreamDriver="gtls"StreamDriverMode="1"target="ubuntu16.localdomain" port="514" protocol="tcp")
起因是設定檔中的DriverMode無法設定,只要有這行rsyslogd啟動會無任何訊息直接掛掉
‵‵‵
global(
DefaultNetstreamDriverCAFile="/etc/syslog-ng.cert"
DefaultNetstreamDriver="gtls"
DefaultNetstreamDriverAuthMode="anon"
DefaultNetstreamDriverMode="1"
)
. @@10.211.55.3:514
‵‵‵
rsyslogd 8.16.0,
rsyslog-gnutls/xenial-updates,now 8.16.0-1ubuntu3.1 amd64
parameter 'DefaultNetstreamDriverMode' not known
parameter 'DefaultNetstreamDriverAuthMode' not known
但我查不到任何地方可以設置這兩個參數,而沒有這兩個參數送出去的就是純文字,搞什麼...
`
action(type="omfwd"
`queue.type="linkedlist"
queue.filename="example_fwd"
action.resumeRetryCount="-1"
queue.saveOnShutdown="on"
StreamDriver="gtls"
StreamDriverMode="1"
target="ubuntu16.localdomain" port="514" protocol="tcp"
)
openssl s_client -connect <domain_name>:<port> -CAfile <xxx.pem>