Return-Path: X-Original-To: apmail-logging-log4j-user-archive@www.apache.org Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EADB218BF0 for ; Tue, 19 Jan 2016 04:41:41 +0000 (UTC) Received: (qmail 17506 invoked by uid 500); 19 Jan 2016 04:41:41 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 17454 invoked by uid 500); 19 Jan 2016 04:41:41 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 17443 invoked by uid 99); 19 Jan 2016 04:41:41 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2016 04:41:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 003FAC0044 for ; Tue, 19 Jan 2016 04:41:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.901 X-Spam-Level: ** X-Spam-Status: No, score=2.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id y3N3LQZ9yCZ7 for ; Tue, 19 Jan 2016 04:41:28 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 99395212C1 for ; Tue, 19 Jan 2016 04:41:27 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id c192so331107584lfe.2 for ; Mon, 18 Jan 2016 20:41:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wdLaoVlP37Fs75GME104+iM2UCiQo4HB7QscrFAE1r8=; b=LTAIF37Qiu6wydtuXgQR/RyLGPT/R6IldG7+0QQBLPom6t+PXE1rl8ryrIuN9LodW6 9kXl8Ap+caAwJFLcsUEgzLnP/yPYwQRDdTkhk2f1UCh+bTrCHGViBAj9xi5bqRjuAXm7 DaSEM1AJri0aLBccd1jURtkRPGEtW7wxPclycgv8JwiQS6eHPRkeQi4BzSugetJvw8vV GowDQMCAp9NGOrH7mX1xot6Laubb118VNuiQQrUXMxG414GPs+bMHhGOCs+ZpBSTj1Wx s0ts1lxDvmcmm1E8ig8XrPvVKIDA5wvBdr051h3JuSpss1MWu1DV96DMTy82H7JodaQY 0pvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=wdLaoVlP37Fs75GME104+iM2UCiQo4HB7QscrFAE1r8=; b=YVzxo+G8YWnbKDHqIjGLhpG38TWlBN+tksb/eNTQNmmcgKmXIqGISrVYN1VDXWRWn5 ssf64UNsDIMyyU6vcJNBIWlkgUXGs3nmxltDEKwGm3uf0Z2g0q/KS8hOPCm3hJ0Tjt9r O6tEBYBjNK2XYDollA5DIx0Eb+cr07TWSI8DdbzWA3yVGh1hE5wwjyveV+ZxIAp36O7a kB40jP2EMDMUb4UpyZ9+gNLp2mGW72u9rcUbQ17E20Ci6WyQdoUi2ObqwpS6UEAaCReq NSCrDfaYZphSpFYIcgdmW/CsA0mc1zow8o6/uaTrB+QWxmGhaIyayQ+FDtsLhjiERbjx o1wQ== X-Gm-Message-State: ALoCoQlGGNBOaj4PQNa51lIcRE/gbt6ydFdFhfqEbZXHgCOwoOKW6/l6QAQ+kPsCvurIFd96Rz7I73p3eq4o0X0n386inugNnQ== MIME-Version: 1.0 X-Received: by 10.25.149.21 with SMTP id x21mr9966513lfd.124.1453178486076; Mon, 18 Jan 2016 20:41:26 -0800 (PST) Received: by 10.112.200.201 with HTTP; Mon, 18 Jan 2016 20:41:25 -0800 (PST) In-Reply-To: <678007E4-B6C8-42C5-97FD-14DFEDF742D7@dslextreme.com> References: <8EC30FDD-27CA-4B12-B08C-7B407E8DFC7E@chewy.com> <8855C164-ED80-4E08-B91C-FAE1D90BA317@chewy.com> <8939430E-B85B-4DEB-A49C-B32E99A771E5@chewy.com> <678007E4-B6C8-42C5-97FD-14DFEDF742D7@dslextreme.com> Date: Mon, 18 Jan 2016 20:41:25 -0800 Message-ID: Subject: Re: RFC5424 over TCP without TLS From: Gary Gregory To: Log4J Users List Content-Type: multipart/alternative; boundary=001a11402054753e530529a87b51 --001a11402054753e530529a87b51 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ah, right, so one can just configure a with a configured in a non-standard way with useTlsMessageFormat = =3D "false". Gary On Mon, Jan 18, 2016 at 8:35 PM, Ralph Goers wrote: > As I have stated before, that=E2=80=99s because the SyslogAppender is rea= lly > nothing more than the SocketAppender with one of the two Syslog Layouts > hardwired to it. > > Ralph > > > On Jan 18, 2016, at 6:24 PM, Gary Gregory > wrote: > > > > Hm, yeah, you cannot pass a layout to a SyslogAppender. Dead end there. > > > > Gary > > > > On Mon, Jan 18, 2016 at 5:02 PM, Blake Day blake@chewy.com>> wrote: > > > >> So you mean a ? The layout is =E2=80=9Chardcoded=E2= =80=9D on > >> SyslogAppender. > >> > >> > >> > >> > >> On 1/18/16, 7:42 PM, "Gary Gregory" wrote: > >> > >>> What about using a with a ? > >>> > >>> Gary > >>> > >>> On Mon, Jan 18, 2016 at 3:17 PM, Blake Day wrote: > >>> > >>>> It was worth a look, but no. SocketAppender creates an > SslSocketManager > >>>> when protocol =3D SSL. > >>>> > >>>> > >>>> > >>>> > >>>> On 1/18/16, 5:46 PM, "Gary Gregory" wrote: > >>>> > >>>>> I think you might be able to "cheat" by saying protocol=3D"SSL" on = the > >>>>> appender... > >>>>> > >>>>> Gary > >>>>> > >>>>> On Mon, Jan 18, 2016 at 2:07 PM, Blake Day wrote: > >>>>> > >>>>>> Hi all, > >>>>>> > >>>>>> We are trying to achieve RFC5424 message formats over TCP transpor= t > >>>>>> without TLS. > >>>>>> > >>>>>> As you may know, SyslogAppender uses an instance of Rfc5424Layout = to > >>>>>> provide the logging layout. That layout takes a parameter called > >>>>>> =E2=80=9CuseTlsMessageFormat=E2=80=9D, which SyslogAppender sets b= ased on whether > >> TLS is > >>>>>> configured. When true, the layout wraps the log event in a > >>>>>> TlsSyslogFrame. TlsSyslogFrame simply prepends a length to the fu= ll > >> log > >>>>>> message, but that length is required by syslog-ng to frame RFC5424 > >>>>>> messages. While the RFC for TCP-based transport of the RFC5424 > >> format > >>>> does > >>>>>> not allow for non-TLS connections, some users (like us) would like > to > >>>> adopt > >>>>>> the RFC5424 format over TCP *without* TLS. We believe, but have n= ot > >>>>>> tested, that we could do this by simply adding a configuration > >>>> parameter to > >>>>>> the SyslogAppender that allows us to override useTlsMessageFormat = to > >>>> true. > >>>>>> > >>>>>> Any thoughts on this change? Have we overlooked an obvious > >> alternative > >>>> to > >>>>>> achieving RFC5424 over TCP without TLS? > >>>>>> > >>>>>> Thanks, > >>>>>> > >>>>>> Michael Day > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org > >>>>> Java Persistence with Hibernate, Second Edition > >>>>> > >>>>> JUnit in Action, Second Edition > >>>>> Spring Batch in Action > >>>>> Blog: http://garygregory.wordpress.com > >>>>> Home: http://garygregory.com/ > >>>>> Tweet! http://twitter.com/GaryGregory > >>>> > >>> > >>> > >>> > >>> -- > >>> E-Mail: garydgregory@gmail.com | ggregory@apache.org > >>> Java Persistence with Hibernate, Second Edition > >>> > >>> JUnit in Action, Second Edition > >>> Spring Batch in Action > >>> Blog: http://garygregory.wordpress.com > >>> Home: http://garygregory.com/ > >>> Tweet! http://twitter.com/GaryGregory > >> > > > > > > > > -- > > E-Mail: garydgregory@gmail.com | > ggregory@apache.org > > Java Persistence with Hibernate, Second Edition > > > > > JUnit in Action, Second Edition http://www.manning.com/tahchiev/>> > > Spring Batch in Action http://www.manning.com/templier/>> > > Blog: http://garygregory.wordpress.com < > http://garygregory.wordpress.com/> > > Home: http://garygregory.com/ > > Tweet! http://twitter.com/GaryGregory > --=20 E-Mail: garydgregory@gmail.com | ggregory@apache.org Java Persistence with Hibernate, Second Edition JUnit in Action, Second Edition Spring Batch in Action Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory --001a11402054753e530529a87b51--