From owner-freebsd-hackers@freebsd.org Sun Sep 30 10:10:12 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7000F10BACF7 for ; Sun, 30 Sep 2018 10:10:12 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E6AD27C466 for ; Sun, 30 Sep 2018 10:10:11 +0000 (UTC) (envelope-from timp87@gmail.com) Received: by mail-wr1-x431.google.com with SMTP id 63-v6so3367059wra.11 for ; Sun, 30 Sep 2018 03:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=GPKfiAKB2fRVKw2sLZT65+H0lbezydKqFM04yZ0Z2AI=; b=Ol5P+jAfKTOq4JWlDgdRc9RC7IO4JIwOdQiGAiCBThzcK+8MV4cJ+aChHnQOp4pVpD +XSDE0LoYXvvFA9WZZYU/Q2b4xqYUz5lszEVCY3OhONP3B1qEZ6CUR/uN6qRA0TzyDFF nWK1cRCOTXQtVvB5y37EcZKcoide5p67LGb1Gl5XZ1+btDAUXvEZyJm+jk3i7s8V4DEe 2d0evO/1ui++vES4cgSeG5YaxKT3XIPUO5NaYmVCZQ5mijhHR4xqc+jhOm2FdWRB2Cn1 DDaWljamC4dwooy6SBI16LxCGuF0uFc+PrUUxtAXL0Gr1JkKJBbliuaTYcVneRQbCQOj u5pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GPKfiAKB2fRVKw2sLZT65+H0lbezydKqFM04yZ0Z2AI=; b=tp1eRVrhUw5Bw/j9l61Q1HpYtjSWaDIk3aE/dpZD/5JgFOOGre+0YQeesq4rYTL7I9 VfrUstFzAvm9Uhqen03p21aR8i3luO5I7ZQtbr/EiauS+a9233gXdYb4EhbTzUhL++gq hVdvKPetcEBgHFX7FS74NHO1Za4fmgsA0wmLElLKsR7FJYcb+cvOsHEJIhTTpexWY96N 9pIWT1LYTEtBNjN0j5SafPB+apQ9U47VnNdjxSWFbqG7D+AvOEiJFCjLm5gXBbf0jVEQ gOqsK+O9Uiv/dQmpuPuuqSP2DxsfA6HTByB1msHwd2DSG4L32/IW04+iDgyrWkz3ZSgf QoMQ== X-Gm-Message-State: ABuFfohrty8EuNS74FfjWyjJolsD8VIazYTtPaqUHE5FsNSgmBEq4IGG KK8se04Gi9VB7w3EEGCpmU+QXMymct7IPd3ndOvBAmg2 X-Google-Smtp-Source: ACcGV615K4slDfZYRAV2UPfkmgUbzJ3tixfHwC4Dw4Cy/A2N/ONkW0CJEeYXTKQOp2lmtRKfDDMiyc4FNMrDycWLr3c= X-Received: by 2002:adf:b7c9:: with SMTP id t9-v6mr3957627wre.274.1538302210375; Sun, 30 Sep 2018 03:10:10 -0700 (PDT) MIME-Version: 1.0 From: Pavel Timofeev Date: Sun, 30 Sep 2018 13:09:59 +0300 Message-ID: Subject: Syslogd less verbose logging with rfc5424 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2018 10:10:12 -0000 Hello, dear community! There was a great work to bring rfc5424 date format to syslogd(8). See https://svnweb.freebsd.org/base?view=revision&revision=332510 I've been using it on CURRENT since it was imported. I'm happy I can finally get syslog messages with high time precision w/o installing rsyslog or another syslog implementation. The thing I really don't like is that syslogd puts severity and priority to log files next to timestamp. In my opinion severity and priority is not needed in 99% of cases, only in debugging corner cases. While high precision timestamp is the main thing what people like rfc 5424 for. This is just my opinion. So for "-O rfc5424" I'd like to have the same behavior as for rfc 3164, i. e. do not log severity and priority by default and if needed use '-v' option to enable those. But it was decided and documented that '-v' won't have any effect for rfc 5425 https://svnweb.freebsd.org/base?view=revision&revision=335862 The first thing I'd like to suggest is to make rfc 5424 logging the same way as for rfc 3164, i. e. make '-v' option work the same. If community is not agree with me, I'd like to suggest another thing: have another option/flag for syslogd(8) to disable severity and priority logging if one use rfc 5424.