From owner-freebsd-questions@FreeBSD.ORG Thu Nov 29 19:46:44 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 214FD84A for ; Thu, 29 Nov 2012 19:46:44 +0000 (UTC) (envelope-from noeldude@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id C5F2C8FC08 for ; Thu, 29 Nov 2012 19:46:43 +0000 (UTC) Received: by mail-gg0-f182.google.com with SMTP id e5so1830546ggh.13 for ; Thu, 29 Nov 2012 11:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=o7bg4EyNCUuZP9sjN8v5vP7s0pUE7OY53hMRtCbaj8Q=; b=O1qvLFTAeC8vAJvyDMkRY9x2dUm8uv5a96bhJalS+2+5DOX6Y4hVcC9q0yrX2snpaM EUAQk8pciZzqvXfH/IdOdbOAcY7OyVIqEDfjo7DjlzPhhJxxBMwMGjd5v74cmfRpo3W6 /YNzOUSuuhCND2JbV8cdFj95/j2tcQ6ew4UOilU+wkuq0KxBrXFEOWc4nxrJzeci2bUn GVrZ9bXmb6I750orTC5N5I36E0Rs9tQyILqhWyVm2wnRyKPI/gv1C5GFNpgE09lrRTk9 D/mSfaAQ0OtV4ig6eC/lBev5gt5JlWcmNU+TUuU8wFWrgoAFTw4fW7FBLaSLI/HJ7x4Z cQDw== Received: by 10.236.126.104 with SMTP id a68mr24975877yhi.106.1354218403116; Thu, 29 Nov 2012 11:46:43 -0800 (PST) Received: from [192.168.70.140] ([12.107.221.2]) by mx.google.com with ESMTPS id k63sm2573154yhj.20.2012.11.29.11.46.41 (version=SSLv3 cipher=OTHER); Thu, 29 Nov 2012 11:46:42 -0800 (PST) Message-ID: <50B7BBA1.7090308@gmail.com> Date: Thu, 29 Nov 2012 13:46:41 -0600 From: Noel User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Unexepected results when piping syslog to a fifo References: <80AACED86FEA012CB5D1F5F9@utd71538.campus.ad.utdallas.edu> In-Reply-To: <80AACED86FEA012CB5D1F5F9@utd71538.campus.ad.utdallas.edu> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Thu, 29 Nov 2012 19:46:44 -0000 On 11/29/2012 1:30 PM, Paul Schmehl wrote: > I'm working on a project which requires that I pipe a remote > syslog to a fifo so a daemon can parse the results. After some > googling I *thought* that I had figured out how to configure > syslog to do this. Here's the syslog.conf entry: > > + hostname.utdallas.edu > *.* | cat > /var/run/program/program.fifo > > This seems to work for one syslog message. The rest go to > /var/log/messages. > > So I tried this: > + hostname.utdallas.edu > *.* | tail -f > /var/run/program/program.fifo > > But that seems to do the same thing. > > I want these messages to be piped to the fifo *only* and not show > up in local logs. What's the secret sauce for this? > I've used this in the past ... !* +host.example.com *.* | /path/to/fifo