From owner-freebsd-hackers@freebsd.org Tue Jun 25 23:07:09 2019 Return-Path: <owner-freebsd-hackers@freebsd.org> 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 4E1BA15D94B3 for <freebsd-hackers@mailman.ysv.freebsd.org>; Tue, 25 Jun 2019 23:07:09 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (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 2C47482800 for <freebsd-hackers@freebsd.org>; Tue, 25 Jun 2019 23:07:08 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mail-qk1-x72e.google.com with SMTP id s22so94687qkj.12 for <freebsd-hackers@freebsd.org>; 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=N7MH+a8TxK6i9yss1J7oNBHmlHNQ9cn20Mn66ZGcA8sDQF+fEQEX+ORD60Jty5Pqip gfqvxg8qUKw//yOjCgLsZ6mkiezexfXn9VSnlaLISJbw/RSZk69h+itRGZLCSBEqC897 oiqL5hoKEDfkHD5NctPcCHfSz1svQfsh95ozIkDOtKdXPe0rP263wBh3CV51QS6YsHAC WxeZkgmPpDiaVDstU+RU4FZkRZ2GUwdlrj+ddW3XCglK2Yd53/SjZo9XHaDi9uNKWVV9 MuwRbQoxbt6FhI+bKM0ANOPaEHlLYu25mjCqlUkaS3Q5ODQ5Lh8285MAMbZooOdsFvJV huog== X-Gm-Message-State: APjAAAWUaXiglJnLvfZ2hLul1me3JBWVPlBTg41/u1ubqowApLzIRwd5 EOjpoF036PPsqyyjPQI+xhveSBx1WLZDAme30k0wXsAf0X0= 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: <bf597c3830ebabbef6ac422a5d648e1eed13fac5.camel@freebsd.org> In-Reply-To: <bf597c3830ebabbef6ac422a5d648e1eed13fac5.camel@freebsd.org> From: Michael Sierchio <kudzu@tenebras.com> Date: Tue, 25 Jun 2019 16:06:30 -0700 Message-ID: <CAHu1Y72_hKcTcAvohsJOLvwwh2y3mseJGYJQbB0DqxkioBc_iA@mail.gmail.com> Subject: Re: Limiting the size of syslogd output files using options in syslog.conf To: Ian Lepore <ian@freebsd.org> Cc: freebsd-embedded@freebsd.org, freebsd-hackers@freebsd.org X-Rspamd-Queue-Id: 2C47482800 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-hackers@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)[e.2.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.41), ipnet: 2607:f8b0::/32(-3.14), asn: 15169(-2.33), country: US(-0.06)] X-Mailman-Approved-At: Wed, 26 Jun 2019 01:54:14 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD <freebsd-hackers.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-hackers>, <mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers/> List-Post: <mailto:freebsd-hackers@freebsd.org> List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-hackers>, <mailto:freebsd-hackers-request@freebsd.org?subject=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 <ian@freebsd.org> 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