From owner-freebsd-embedded@freebsd.org Tue Jun 25 22:25:05 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 E638E15D8B67 for ; Tue, 25 Jun 2019 22:25:04 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 27F69816FC for ; Tue, 25 Jun 2019 22:25:03 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1561500530; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=MUPvQrTVNUnJlMC/AOEXIMNA7p5jmoja+OucGJX8jBWLo6E2bjpUiKL10IN+r/xiHhrIQsYGjEqU0 dWSWQ/m5A3IVr9NuRjNWgzLxdR0e9vxL+RqeVsmzPfuUlUeNQegmlCzdqGDChtx0PgBqjJWn70d34t Z8Ili4uBEGOtjXhERd36R35AC5LtMmc8pLMmVTnen4jx1xC3n9fqSTaYTugkWY+Biq4aDpcRPauNir fPdzBJIHj66m1Uj6PV3qyPH/Q7gno6rUzd15FAJVXoRdPXMkqgFv18xtpHrGQns+iCJDfKOQIgzuUX f+OlI2zNx8PXXF1UjJg85AidJ7CEXRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:date:to:from:subject: message-id:dkim-signature:from; bh=WJG2hMVzBnzmYNSC3bOxg2T5h6pcX7Vnf9WMM+YKJuI=; b=MNt0SuCFkih/FZyCMMx/jp/jKcV3s9vGZz/we2ebxopvmhIXIWnlqXhgZZRlAKJnAxS3KUiSzFw4o 5nIsimUz/4KU1gdv7Ty82cupEej3OBhltFbjytUXZaxSVR6Aeepr474iKj4XbxFxAf4VGzg425k1qk H5xhCEOvRUbGnbsBYhYkuuODr7036TF8JJCMxy11t5jWyvzVp2SUg+NdmUG1Tr4zEQ8//TsELNT12H cT3NnhxZYySP0CcqkbYX+s3ayfjPEfx+AsxEvJy27svOhxdciXiDId0nghhV7A3tb863W52GMg5HbB Tg1kXefUBAX8+1NUz6P6Iafh6tf0VRg== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:date:to:from:subject: message-id:from; bh=WJG2hMVzBnzmYNSC3bOxg2T5h6pcX7Vnf9WMM+YKJuI=; b=B3wGS8Ov5w/XQwbzrOf8BiHk/t8s+8/Slb+ts8yiQDN9uqmcYxzuUxjjvT3AYZaFw2jwvMIp+fAf+ LZint79JNvJrcq67135xdMpOGHIRbIBlKLcCtO7EqxLD5tkJcu9sRdBrIV/ihdrL4o8wj00KV5Nrys XHo5p+OCfRC4i16p5ajxbxAf2TiFYVZYYO9yIM8WoJPWBEHYoCS/Vl9hmC6cKnNSqWVUWz8ETOVIVJ W78bnrei8c9Dh9izbOaQ2Z4KFRfgaSUfPvWrx8XSTZYnnYqo+R6lWMm50GeRWDni9fOP51skBdrG1U OgP2Ald1sq9qukmdPGSZ+Ezxofahtzg== X-MHO-RoutePath: aGlwcGll X-MHO-User: ce720a12-9795-11e9-a4fc-d9033e875444 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id ce720a12-9795-11e9-a4fc-d9033e875444; Tue, 25 Jun 2019 22:08:49 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x5PM8lPF048202; Tue, 25 Jun 2019 16:08:47 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Limiting the size of syslogd output files using options in syslog.conf From: Ian Lepore To: freebsd-embedded@freebsd.org, freebsd-hackers@freebsd.org Date: Tue, 25 Jun 2019 16:08:47 -0600 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 27F69816FC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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 22:25:05 -0000 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