Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Fascinating is a word I use for the unexpected. -- Spock, "The Squire of Gothos", stardate 2124.5


devel / comp.lang.python / Re: Getting Syslog working on OSX Monterey

SubjectAuthor
o Re: Getting Syslog working on OSX MontereyPeter J. Holzer

1
Re: Getting Syslog working on OSX Monterey

<mailman.215.1646595347.2329.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17404&group=comp.lang.python#17404

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: hjp-pyt...@hjp.at (Peter J. Holzer)
Newsgroups: comp.lang.python
Subject: Re: Getting Syslog working on OSX Monterey
Date: Sun, 6 Mar 2022 20:35:44 +0100
Lines: 67
Message-ID: <mailman.215.1646595347.2329.python-list@python.org>
References: <CADoNktU6JPX00wDf9asFVr=NpTAy1ruRn_pHnLunc91M9_sokA@mail.gmail.com>
<0D40B574-2975-49BD-9E97-9055317169E5@barrys-emacs.org>
<20220228214109.ntoihdobzf5naqrx@hjp.at>
<4EAF5AC0-446D-4493-AFF0-2FD8A8889439@barrys-emacs.org>
<20220304212307.bd3rj67m6gaej37a@hjp.at>
<64FFB4FB-F4BD-4E1A-AAC7-792A26D65EB6@barrys-emacs.org>
<20220306172859.kirgy6zgpagbkkon@hjp.at>
<20220306193544.6m5s3srx5norodlt@hjp.at>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="d2t7wejs2hlefy5b"
X-Trace: news.uni-berlin.de r3Hf2Y4yI3XXLpKWRjXW2AoMU6s+ATEOBBUqHzbDpJ9Q==
Return-Path: <hjp-python@hjp.at>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '3.6': 0.05; 'content-
type:multipart/signed': 0.05; '"just': 0.09; 'content-
type:application/pgp-signature': 0.09; 'filename:fname piece:asc':
0.09; 'filename:fname piece:signature': 0.09;
'filename:fname:signature.asc': 0.09; 'linux': 0.09; 'macos':
0.09; 'messages.': 0.09; 'obviously': 0.09; 'rfc': 0.09;
'"creative': 0.16; '__/': 0.16; 'barry': 0.16; 'challenge!"':
0.16; 'from:addr:hjp-python': 0.16; 'from:addr:hjp.at': 0.16;
'from:name:peter j. holzer': 0.16; 'hjp@hjp.at': 0.16; 'holzer':
0.16; 'incompatible': 0.16; 'part.': 0.16; 'reality.': 0.16;
'redundant': 0.16; 'stross,': 0.16; 'subject:OSX': 0.16;
'subject:working': 0.16; 'url-ip:212.17.106.137/32': 0.16; 'url-
ip:212.17.106/24': 0.16; 'url-ip:212.17/16': 0.16; 'url:hjp':
0.16; '|_|_)': 0.16; 'wrote:': 0.16; 'python': 0.16; 'to:addr
:python-list': 0.20; 'header': 0.23; 'suspect': 0.26; 'function':
0.27; 'sense': 0.28; 'seem': 0.31; "doesn't": 0.32; 'question':
0.32; 'formats': 0.32; 'use,': 0.33; 'header:In-Reply-To:1': 0.34;
'using': 0.37; "it's": 0.37; 'means': 0.38; 'two': 0.39; 'safe':
0.39; 'valid': 0.39; 'use': 0.39; 'break': 0.39; 'case.': 0.40;
'format': 0.62; 'received:212': 0.62; 'apple': 0.64;
'received:userid': 0.66; 'url-ip:212/8': 0.69; 'received:at':
0.84; 'scott': 0.84; 'upgrades': 0.84; 'broke': 0.91; 'hidden':
0.95
Content-Disposition: inline
In-Reply-To: <20220306172859.kirgy6zgpagbkkon@hjp.at>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <20220306193544.6m5s3srx5norodlt@hjp.at>
X-Mailman-Original-References: <CADoNktU6JPX00wDf9asFVr=NpTAy1ruRn_pHnLunc91M9_sokA@mail.gmail.com>
<0D40B574-2975-49BD-9E97-9055317169E5@barrys-emacs.org>
<20220228214109.ntoihdobzf5naqrx@hjp.at>
<4EAF5AC0-446D-4493-AFF0-2FD8A8889439@barrys-emacs.org>
<20220304212307.bd3rj67m6gaej37a@hjp.at>
<64FFB4FB-F4BD-4E1A-AAC7-792A26D65EB6@barrys-emacs.org>
<20220306172859.kirgy6zgpagbkkon@hjp.at>
 by: Peter J. Holzer - Sun, 6 Mar 2022 19:35 UTC
Attachments: signature.asc (application/pgp-signature)

On 2022-03-06 18:28:59 +0100, Peter J. Holzer wrote:
> On 2022-03-05 16:25:38 +0000, Barry Scott wrote:
> > Using the syslog() function means that any platform/distro details are
> > hidden from the user of syslog() and as is the case of macOS it
> > "just works".
>
> That doesn't seem to be case. Philip Bloom reported in
> <CADoNktVgU9DBdBfc5wJe4vhJcTKrdVQjdeUO8eN=BvTw9g48fw@mail.gmail.com>,
> that syslog in Python 3.6 broke in OS X Monterey. So even using
> syslog(3) doesn't seem to be safe across upgrades (no, I don't know
> how Apple managed to break this - as I wrote, I don't use OS X).
>
>
> > (I assume, not checked, that the write to the socket does not work
> > because Apple is not implementing the syslog protocol from the RFC).

I noticed that RFC 5424 describes a very different protocol from RFC
3164 and was curious which one SysLogHandler implements.

Surprise: Neither.

It just sends the PRI part and the MSG part. While that neatly sidesteps
the question of which of the two incompatible header formats to use,
it's not a a valid syslog message in either format.

Obviously Linux accepts this format (the timestamp and the hostname are
kind of redundant anyway when you're using a unix socket).

I strongly suspect that the OS X syslog daemon got stricter and now
insists on properly formatted messages.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

Attachments: signature.asc (application/pgp-signature)
1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor