[syslog-ng] unidirectional unix-stream
james.r.hendrick at gmail.com
Wed Apr 12 20:40:29 UTC 2017
Maybe an option for the destination that controls that?
Would you ever want to receive status back on the destination, or would
simply an "ignore responses" fit the bill?
On Wed, Apr 12, 2017 at 4:04 PM, Balazs Scheidler <bazsi77 at gmail.com> wrote:
> Syslog-ng doesnt expect data on the socket on the reverse direction and
> shuts down the connection if anything is received.
> It is meant to work with /dev/log like devices.
> I was wondering if it's correct to ignore the reverse direction, is it?
> On Apr 12, 2017 2:34 PM, "Jim Hendrick" <james.r.hendrick at gmail.com>
>> Do you have access to the sourcode of otherapp ?
>> My first guess would be to look at the options of how each end handles
>> the socket.
>> On Wed, Apr 12, 2017 at 7:21 AM, Fabien Wernli <wernli at in2p3.fr> wrote:
>>> I'm trying to use the unix-stream destination to send data to another
>>> application which opens the socket in line mode. The problem is that both
>>> ends complain about the connection breaking all the time:
>>> syslog-ng: Syslog connection broken; fd='24',
>>> server='AF_UNIX(/var/run/otherapp.sock)', time_reopen='60'
>>> otherapp: failed to read from socket #10: Connection reset
>>> by peer
>>> I tracked down the problem to the fact that otherapp sends some data
>>> after receiving a line from syslog-ng: "data ok", and syslog-ng doesn't
>>> seem to like that.
>>> If I set up a unidirectional proxy (that filters out upstream "data ok")
>>> between syslog-ng and otherapp everything works fine:
>>> socat -u UNIX-LISTEN:/tmp/proxy.sock,fork
>>> Am I doing something wrong here, or is this a known limitation of
>>> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>>> Documentation: http://www.balabit.com/support
>>> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> Documentation: http://www.balabit.com/support/documentation/?product=
>> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the syslog-ng