Mailing List Archive

Logging lost TCP connections
Hi.

I've googled this extensively but can can't find a solution. Please could anyone tell
me if there is an option to enable logging of lost TCP connections? I'd like the
event recorded locally if contact is lost with a remote TCP syslog server.

Many thanks.


Pete Philips.
--
Pete Philips
Secerno Ltd
Email: pete.philips@secerno.com
PGP key: http://www.secerno.com/pgp/pete.gpg
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com
Re: Logging lost TCP connections [ In reply to ]
Hi Pete,

I think there is no such option, but I will check with the code.

Rainer

> -----Original Message-----
> From: rsyslog-bounces@lists.adiscon.com [mailto:rsyslog-
> bounces@lists.adiscon.com] On Behalf Of Pete Philips
> Sent: Monday, November 24, 2008 1:37 PM
> To: rsyslog@lists.adiscon.com
> Subject: [rsyslog] Logging lost TCP connections
>
> Hi.
>
> I've googled this extensively but can can't find a solution. Please
> could anyone tell
> me if there is an option to enable logging of lost TCP connections?
I'd
> like the
> event recorded locally if contact is lost with a remote TCP syslog
> server.
>
> Many thanks.
>
>
> Pete Philips.
> --
> Pete Philips
> Secerno Ltd
> Email: pete.philips@secerno.com
> PGP key: http://www.secerno.com/pgp/pete.gpg
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com
Re: Logging lost TCP connections [ In reply to ]
Hi Pete,

I checked, but this information is only available in the debug log.
Having said that, it is probably not hard to add it. What exactly would
you like to see (e.g. complete closes or just aborted ones)?

Rainer

> -----Original Message-----
> From: rsyslog-bounces@lists.adiscon.com [mailto:rsyslog-
> bounces@lists.adiscon.com] On Behalf Of Rainer Gerhards
> Sent: Monday, November 24, 2008 2:37 PM
> To: rsyslog-users
> Subject: Re: [rsyslog] Logging lost TCP connections
>
> Hi Pete,
>
> I think there is no such option, but I will check with the code.
>
> Rainer
>
> > -----Original Message-----
> > From: rsyslog-bounces@lists.adiscon.com [mailto:rsyslog-
> > bounces@lists.adiscon.com] On Behalf Of Pete Philips
> > Sent: Monday, November 24, 2008 1:37 PM
> > To: rsyslog@lists.adiscon.com
> > Subject: [rsyslog] Logging lost TCP connections
> >
> > Hi.
> >
> > I've googled this extensively but can can't find a solution. Please
> > could anyone tell
> > me if there is an option to enable logging of lost TCP connections?
> I'd
> > like the
> > event recorded locally if contact is lost with a remote TCP syslog
> > server.
> >
> > Many thanks.
> >
> >
> > Pete Philips.
> > --
> > Pete Philips
> > Secerno Ltd
> > Email: pete.philips@secerno.com
> > PGP key: http://www.secerno.com/pgp/pete.gpg
> > _______________________________________________
> > rsyslog mailing list
> > http://lists.adiscon.net/mailman/listinfo/rsyslog
> > http://www.rsyslog.com
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com
Re: Logging lost TCP connections [ In reply to ]
Rainer,

Thanks for your help on this.

Rainer Gerhards wrote:
> I checked, but this information is only available in the debug log.
> Having said that, it is probably not hard to add it. What exactly would
> you like to see (e.g. complete closes or just aborted ones)?

I'm not sure of the exact terminology but I'd like it to log a record locally everytime
it becomes not possible to send a TCP syslog message to a remote server. Perhaps if
this would be useful to others then it could be added to a future release?

Thanks.


Pete.
--
Pete Philips
Secerno Ltd
Email: pete.philips@secerno.com
PGP key: http://www.secerno.com/pgp/pete.gpg
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com
Re: Logging lost TCP connections [ In reply to ]
> -----Original Message-----
> From: rsyslog-bounces@lists.adiscon.com [mailto:rsyslog-
> bounces@lists.adiscon.com] On Behalf Of Pete Philips
> Sent: Monday, November 24, 2008 3:27 PM
> To: rsyslog-users
> Subject: Re: [rsyslog] Logging lost TCP connections
>
> Rainer,
>
> Thanks for your help on this.
>
> Rainer Gerhards wrote:
> > I checked, but this information is only available in the debug log.
> > Having said that, it is probably not hard to add it. What exactly
> would
> > you like to see (e.g. complete closes or just aborted ones)?
>
> I'm not sure of the exact terminology but I'd like it to log a record
> locally everytime
> it becomes not possible to send a TCP syslog message to a remote
> server. Perhaps if
> this would be useful to others then it could be added to a future
> release?

Ummm... I was on the wrong side, checking the receiver. So you would
like to log if the send does not succeed?

Which brings up the question: do you have reasons for accepting the
message loss? I am asking because you can instruct rsyslog to retry
sending the data when the remote server is ready again. For an example,
see here:

http://www.rsyslog.com/doc-rsyslog_reliable_forwarding.html

Rainer
>
> Thanks.
>
>
> Pete.
> --
> Pete Philips
> Secerno Ltd
> Email: pete.philips@secerno.com
> PGP key: http://www.secerno.com/pgp/pete.gpg
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com
Re: Logging lost TCP connections [ In reply to ]
Rainer Gerhards wrote:
> Ummm... I was on the wrong side, checking the receiver. So you would
> like to log if the send does not succeed?

Yes exactly.

> Which brings up the question: do you have reasons for accepting the
> message loss? I am asking because you can instruct rsyslog to retry
> sending the data when the remote server is ready again. For an example,
> see here:
>
> http://www.rsyslog.com/doc-rsyslog_reliable_forwarding.html

I've seen that page and would like to use the disk buffering capability of
rsyslog to make logging failures unnecessary. Unfortunately the spec for the system
I am delivering requires logging of failed delivery attempts and not disk
buffering :-(


Pete.
--
Pete Philips
Secerno Ltd
Email: pete.philips@secerno.com
PGP key: http://www.secerno.com/pgp/pete.gpg
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com
Re: Logging lost TCP connections [ In reply to ]
OK, I will look into that, but I can not promise how trivial this may be
;) I keep you posted.

Rainer

> -----Original Message-----
> From: rsyslog-bounces@lists.adiscon.com [mailto:rsyslog-
> bounces@lists.adiscon.com] On Behalf Of Pete Philips
> Sent: Monday, November 24, 2008 3:44 PM
> To: rsyslog-users
> Subject: Re: [rsyslog] Logging lost TCP connections
>
> Rainer Gerhards wrote:
> > Ummm... I was on the wrong side, checking the receiver. So you would
> > like to log if the send does not succeed?
>
> Yes exactly.
>
> > Which brings up the question: do you have reasons for accepting the
> > message loss? I am asking because you can instruct rsyslog to retry
> > sending the data when the remote server is ready again. For an
> example,
> > see here:
> >
> > http://www.rsyslog.com/doc-rsyslog_reliable_forwarding.html
>
> I've seen that page and would like to use the disk buffering
capability
> of
> rsyslog to make logging failures unnecessary. Unfortunately the spec
> for the system
> I am delivering requires logging of failed delivery attempts and not
> disk
> buffering :-(
>
>
> Pete.
> --
> Pete Philips
> Secerno Ltd
> Email: pete.philips@secerno.com
> PGP key: http://www.secerno.com/pgp/pete.gpg
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com
Re: Logging lost TCP connections [ In reply to ]
Well... I was too quick. The issue is that no matter what we do, we
cannot simply log failed *tcp sends*. The reason is that actions fail
some place inside the rule engine. At the point where it fails, it is
unaware if it is a TCP send, file store, sql store, etc, etc, ... Of
course the tcp output plugin can emit the failure message, but the tcp
output plugin does not know if this is an ultimate failure or not - this
depends on the rule engine configuration.

So if anything is set to report errors, you can either instrument the
plugin and live with potentially false positives OR you can instrument
the rule engine and generate messages in any instance (well, we could
create an action-specific failure notice, which probably can be
configured to what you exactly wanted to have - probably the
solution...).

In any case, feedback from your side is appreciated.

Thanks,
Rainer

> -----Original Message-----
> From: rsyslog-bounces@lists.adiscon.com [mailto:rsyslog-
> bounces@lists.adiscon.com] On Behalf Of Rainer Gerhards
> Sent: Monday, November 24, 2008 3:46 PM
> To: rsyslog-users
> Subject: Re: [rsyslog] Logging lost TCP connections
>
> OK, I will look into that, but I can not promise how trivial this may
> be
> ;) I keep you posted.
>
> Rainer
>
> > -----Original Message-----
> > From: rsyslog-bounces@lists.adiscon.com [mailto:rsyslog-
> > bounces@lists.adiscon.com] On Behalf Of Pete Philips
> > Sent: Monday, November 24, 2008 3:44 PM
> > To: rsyslog-users
> > Subject: Re: [rsyslog] Logging lost TCP connections
> >
> > Rainer Gerhards wrote:
> > > Ummm... I was on the wrong side, checking the receiver. So you
> would
> > > like to log if the send does not succeed?
> >
> > Yes exactly.
> >
> > > Which brings up the question: do you have reasons for accepting
the
> > > message loss? I am asking because you can instruct rsyslog to
retry
> > > sending the data when the remote server is ready again. For an
> > example,
> > > see here:
> > >
> > > http://www.rsyslog.com/doc-rsyslog_reliable_forwarding.html
> >
> > I've seen that page and would like to use the disk buffering
> capability
> > of
> > rsyslog to make logging failures unnecessary. Unfortunately the spec
> > for the system
> > I am delivering requires logging of failed delivery attempts and not
> > disk
> > buffering :-(
> >
> >
> > Pete.
> > --
> > Pete Philips
> > Secerno Ltd
> > Email: pete.philips@secerno.com
> > PGP key: http://www.secerno.com/pgp/pete.gpg
> > _______________________________________________
> > rsyslog mailing list
> > http://lists.adiscon.net/mailman/listinfo/rsyslog
> > http://www.rsyslog.com
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com
Re: Logging lost TCP connections [ In reply to ]
Rainer Gerhards wrote:
> OK, I will look into that, but I can not promise how trivial this may be
> ;) I keep you posted.

Thanks very much for all your help.

Regards,


Pete.
--
Pete Philips
Secerno Ltd
Email: pete.philips@secerno.com
PGP key: http://www.secerno.com/pgp/pete.gpg
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com