From owner-freebsd-questions@FreeBSD.ORG Mon Feb 11 16:17:33 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A3D66354 for ; Mon, 11 Feb 2013 16:17:33 +0000 (UTC) (envelope-from the.lists@mgm51.com) Received: from oneyou.mcmli.com (oneyou.mcmli.com [IPv6:2001:470:1d:8da::100]) by mx1.freebsd.org (Postfix) with ESMTP id 73FAFC34 for ; Mon, 11 Feb 2013 16:17:33 +0000 (UTC) Received: from sentry.24cl.com (sentry.24cl.com [IPv6:2001:470:1f07:3fa::1]) by oneyou.mcmli.com (Postfix) with ESMTPS id 3Z4XG33wSvz1DN5 for ; Mon, 11 Feb 2013 11:17:31 -0500 (EST) Received: from BigBloat (bigbloat.24cl.home [10.20.1.4]) by sentry.24cl.com (Postfix) with ESMTP id 79E0D130CE for ; Mon, 11 Feb 2013 11:17:30 -0500 (EST) Message-ID: <201302111117290531.006A6A67@sentry.24cl.com> X-Mailer: Courier 3.50.00.09.1098 (http://www.rosecitysoftware.com) (P) Date: Mon, 11 Feb 2013 11:17:29 -0500 From: "Mike." To: freebsd-questions@freebsd.org Subject: split-logfile Content-Type: text/plain; charset="ISO-8859-1" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 16:17:33 -0000 I've made the switch from apache to nginx for all the web servers I run. One thing that was missing from the nginx installs was the perl script that is used in apache-land to split a single server access file into separate files for each virtual host - split-logfile. While I could have continued to use the perl script, I decided to write similar functionality in c. The c language version uses less resources to accomplish the same task more quickly. A c language program with functionality similar to the split-logfile perl script, available here: http://archive.mgm51.com/sources/split-logfile.html