Hello, omfwd works well now after I added "Port". Port typedefaultmandatoryobsolete legacy directive word514nonone Thank you
At 2019-12-05 12:24:10, "lxy via rsyslog" <[email protected]> wrote: >Hello, >I found that my rsyslog can't forward anymore, and the network is ok. > > > >client's config is as below. > > >module(load="imuxsock") >input(type="imuxsock" Socket="/dev/log" ruleset="writeRemoteData") > > >ruleset(name="writeRemoteData" > queue.type="fixedArray" > queue.size="250000" > queue.dequeueBatchSize="128" > queue.workerThreads="4" > ) { > action(type="omfwd" Protocol="tcp" Target="imi") >} >"imi" is a dns name, and this issue is still there after I changed the target >to a IP address. > > >server's config is as below. >$ModLoad imtcp >$InputTCPServerRun 514 > > >And the error is as below in debug mode, a little verbose. >9240.296231052:writeRemoteData:Reg/w0: TCPSendInit CREATE >9240.296239289:writeRemoteData:Reg/w0: caller requested object 'nsd_ptcp', not >found (iRet -3003) >9240.296242831:writeRemoteData:Reg/w0: Requested to load module 'lmnsd_ptcp' >9240.296247326:writeRemoteData:Reg/w0: loading module >'/usr/lib64/rsyslog/lmnsd_ptcp.so' >9240.296351862:writeRemoteData:Reg/w0: source file nsd_ptcp.c requested >reference for module 'lmnetstrms', reference count now 3 >9240.296364226:writeRemoteData:Reg/w0: module lmnsd_ptcp of type 2 being >loaded (keepType=0). >9240.296382511:writeRemoteData:Reg/w0: entry point 'isCompatibleWithFeature' >not present in module >9240.296385200:writeRemoteData:Reg/w0: entry point 'setModCnf' not present in >module >9240.296387751:writeRemoteData:Reg/w0: entry point 'getModCnfName' not present >in module >9240.296390182:writeRemoteData:Reg/w0: entry point 'beginCnfLoad' not present >in module >9240.296393852:writeRemoteData:Reg/w0: source file netstrms.c requested >reference for module 'lmnsd_ptcp', reference count now 1 >9240.296811906:writeRemoteData:Reg/w0: TCPSendInit FAILED with -2027. >9240.296821778:writeRemoteData:Reg/w0: file netstrms.c released module >'lmnsd_ptcp', reference count now 0 >9240.296824794:writeRemoteData:Reg/w0: module 'lmnsd_ptcp' has zero reference >count, unloading... >9240.296827726:writeRemoteData:Reg/w0: Unloading module lmnsd_ptcp >9240.296833043:writeRemoteData:Reg/w0: file nsd_ptcp.c released module >'lmnetstrms', reference count now 2 >9240.296866807:writeRemoteData:Reg/w0: omfwd: doTryResume imi iRet -2027 >9240.296870789:writeRemoteData:Reg/w0: Action 0 transitioned to state: rtry >9240.296873726:writeRemoteData:Reg/w0: actionCommit, action 0, in retry loop, >iRet -2007 >9240.296876633:writeRemoteData:Reg/w0: actionDoRetry: action 0 enter loop, >iRetries=0, ResumeInRow 2 >9240.296879607:writeRemoteData:Reg/w0: omfwd: tryResume: pWrkrData >0x7f3cfc0022a0 >9240.296882157:writeRemoteData:Reg/w0: TCPSendInit CREATE >9240.296887278:writeRemoteData:Reg/w0: caller requested object 'nsd_ptcp', not >found (iRet -3003) >9240.296890303:writeRemoteData:Reg/w0: Requested to load module 'lmnsd_ptcp' >9240.296894318:writeRemoteData:Reg/w0: loading module >'/usr/lib64/rsyslog/lmnsd_ptcp.so' >9240.296976620:writeRemoteData:Reg/w0: source file nsd_ptcp.c requested >reference for module 'lmnetstrms', reference count now 3 >9240.297000812:writeRemoteData:Reg/w0: module lmnsd_ptcp of type 2 being >loaded (keepType=0). >9240.297003749:writeRemoteData:Reg/w0: entry point 'isCompatibleWithFeature' >not present in module >9240.297006314:writeRemoteData:Reg/w0: entry point 'setModCnf' not present in >module >9240.297026485:writeRemoteData:Reg/w0: entry point 'getModCnfName' not present >in module >9240.297028825:writeRemoteData:Reg/w0: entry point 'beginCnfLoad' not present >in module >9240.297032162:writeRemoteData:Reg/w0: source file netstrms.c requested >reference for module 'lmnsd_ptcp', reference count now 1 >9240.297359393:writeRemoteData:Reg/w0: TCPSendInit FAILED with -2027. >9240.297367385:writeRemoteData:Reg/w0: file netstrms.c released module >'lmnsd_ptcp', reference count now 0 >9240.297369988:writeRemoteData:Reg/w0: module 'lmnsd_ptcp' has zero reference >count, unloading... >9240.297372627:writeRemoteData:Reg/w0: Unloading module lmnsd_ptcp >9240.297377270:writeRemoteData:Reg/w0: file nsd_ptcp.c released module >'lmnetstrms', reference count now 2 >9240.297396393:writeRemoteData:Reg/w0: omfwd: doTryResume imi iRet -2027 >9240.297399541:writeRemoteData:Reg/w0: actionDoRetry: action 0 >action->tryResume returned -2007 >9240.297402230:writeRemoteData:Reg/w0: actionDoRetry: action 0 check for max >retries, iResumeRetryCount 0, iRetries 0 >9240.297405225:writeRemoteData:Reg/w0: Action 0 transitioned to state: susp >9240.297408273:writeRemoteData:Reg/w0: action 'action 0' suspended, earliest >retry=1575519270 (now 1575519240), iNbrResRtry 1, duration 30 >9240.297411053:writeRemoteData:Reg/w0: action 0 commit failed, writing 1 >messages to error file >9240.297413664:writeRemoteData:Reg/w0: msg 0: '<46>Dec 5 12:14:00 >a89ee8624383 rsyslogd: [origin software="rsyslogd" >swVersion="8.24.0-41.el7_7.2" x-pid="85" x-info="http://www.rsyslog.com"] >start' > > >Thank you >_______________________________________________ >rsyslog mailing list >http://lists.adiscon.net/mailman/listinfo/rsyslog >http://www.rsyslog.com/professional-services/ >What's up with rsyslog? Follow https://twitter.com/rgerhards >NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of >sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE >THAT. _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

