From owner-freebsd-embedded@freebsd.org Tue Jun 25 23:07:09 2019 Return-Path: Delivered-To: freebsd-embedded@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 50B3D15D94B4 for ; Tue, 25 Jun 2019 23:07:09 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 26FEB827FF for ; Tue, 25 Jun 2019 23:07:08 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mail-qk1-x736.google.com with SMTP id m14so102427qka.10 for ; Tue, 25 Jun 2019 16:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenebras-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kjt6kvVJSeUdqdD6RxnC2je+HannTYuOBNf0LXQnnbU=; b=1P8p+UCs0FP3ETzCEjmoth8LTXn/5uZJoS06KHpl5iwPjQyctJ5KUkqI+H2qEd9eMj 4oU2CFgn6FQvzbc9hmst+WmS7CvUQZeXtqvVfuwScubrGAnwedDUH/LIpPBqgiou2swe PIT4bGm36WRQbJko4xqvQkc+jzXcCm9jhxX62+ZZRaUFpewxDEM8T7JqlPUdSeEAhnvY NdwHB3SGNcjTIqTK9Ag37mXP39oXpidVlEaz8vWa6YllKEw6TGd6/qu6BwQFYDqonntT PfZ3Xk72o75CClDYWXhEwtYVZvl5O2unu/hDkrEGRSEQR7Ovzhhz3b8EBnvobrDsjzIv nKjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kjt6kvVJSeUdqdD6RxnC2je+HannTYuOBNf0LXQnnbU=; b=qfBvgUy5FWanyyBVcLt5EGSAsRaDpuot/z3VeWjfmoFQ0srl6TlTgcMAUQQUsOCKlp CxT0sVM2K5duzZMtB3r3gBTEPk2RfRzrBdYeKsD6xGKIbA2mRSbWTuaaTnp5cZdy3ZEh Zlur1T/Fo4m7v1eUpAE0UHbzVX+cjUyna91Zbh8XApwN58WD43uD5O8GWVPZhWOxbVkH V6XnY1QkQoppNI/2zzGrdbSSdTN08uRYkgZWG5EM0J9TGBz2dMss+UGRFCgUsSfeFf+M cGtpARbUDKHK7HYAldRRHnaaHO/UQfB5jhBTr1u0I1vqevLtdE0Kptf+DCCQA8K+I5sL b0IA== X-Gm-Message-State: APjAAAWZ5evX2q+czzTtB49fQ7ndHAeIjXjdDzvsn5GT5BckHS12sweP KLAnrty8AMnT4sHMYFWfqIn8YB92/+48FgVReV2fug== X-Google-Smtp-Source: APXvYqwyvGf0P7x6P16tl0G3i6C276ps2PYG6fsRLCC6SdfK1F6/kfICj8xcvlalXQHXmSMGpeEwNTA+HL74yBDyD7o= X-Received: by 2002:ae9:ee17:: with SMTP id i23mr1074901qkg.399.1561504027270; Tue, 25 Jun 2019 16:07:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Michael Sierchio Date: Tue, 25 Jun 2019 16:06:30 -0700 Message-ID: Subject: Re: Limiting the size of syslogd output files using options in syslog.conf To: Ian Lepore Cc: freebsd-embedded@freebsd.org, freebsd-hackers@freebsd.org X-Rspamd-Queue-Id: 26FEB827FF X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tenebras-com.20150623.gappssmtp.com header.s=20150623 header.b=1P8p+UCs X-Spamd-Result: default: False [-6.28 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[tenebras-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-embedded@freebsd.org]; DMARC_NA(0.00)[tenebras.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: alt1.aspmx.l.google.com]; DKIM_TRACE(0.00)[tenebras-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[6.3.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.98)[-0.983,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-2.99)[ip: (-9.43), ipnet: 2607:f8b0::/32(-3.14), asn: 15169(-2.33), country: US(-0.06)] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jun 2019 23:07:09 -0000 Apologies, but I don't understand the point of this at all. I object especially to idea of patching syslogd when EVERYTHING you seek can be accomplished with appropriate settings in /etc/newsyslog.conf and changing its entry in /etc/crontab to run more frequently. You can control the size and number of files there. You can also do remote syslog. Do you need to rotate logs more than once per minute? On Tue, Jun 25, 2019 at 3:25 PM Ian Lepore wrote: > I've posted a review of a small syslogd change which lets you set a > limit on the size of syslogd output files in /etc/syslog.conf. The > idea is to prevent filling up a filesystem on emmc or sdcard or other > small storage device on an embedded system with unexpected logging > triggered by some error or failing hardware. > > If you're interested, please see the review at > > https://reviews.freebsd.org/D20764 > > -- Ian > > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.or= g > " > --=20 "Well," Brahm=C4=81 said, "even after ten thousand explanations, a fool is = no wiser, but an intelligent person requires only two thousand five hundred." - The Mah=C4=81bh=C4=81rata