From owner-freebsd-cloud@freebsd.org Wed Aug 30 23:06:12 2017 Return-Path: Delivered-To: freebsd-cloud@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 389DAE0C4DD for ; Wed, 30 Aug 2017 23:06:12 +0000 (UTC) (envelope-from 0100015e3565112c-406dc3cb-8399-4597-b0eb-8528bb6319d5-000000@amazonses.com) Received: from a8-56.smtp-out.amazonses.com (a8-56.smtp-out.amazonses.com [54.240.8.56]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F30DC83ECA for ; Wed, 30 Aug 2017 23:06:11 +0000 (UTC) (envelope-from 0100015e3565112c-406dc3cb-8399-4597-b0eb-8528bb6319d5-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ae7m2yrxjw65l2cqdpjxuucyrvy564tn; d=tarsnap.com; t=1504134369; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=7qRT5PnwAW/T+BvS9ux0LrIp+qk2K5um6Z/4RnjrGO8=; b=AVL4fECtiuUNQAfoWsYXL+KPH1L7rdnV8c17aJ+x/LqBSC++AsigZYnesHciSxMG kCtfGYHcjm/WrchCPzeBdoIVApKoQcC7YH+MiSfLBWArf+nuLW4TikIMet5t/hvHCUq jVeG4kTcYns0FI2mBCPTc8VOPXXhqBx2/vlpvYQY= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1504134369; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=7qRT5PnwAW/T+BvS9ux0LrIp+qk2K5um6Z/4RnjrGO8=; b=FpwmzYYjAlBjnfhHPIf4pnWxR81HGrT5lSRCWhSxXY+aYJRWcjmpWiCy7oaD44+m SQtSvsrpkPVdADjDMyr0r8NNu8iHNZ/tjZIHmEAlIUtPppusLDInZjEYvyGyZ6LOpcG i/DVcDq/r/CWv5EyccWKQvx2gHwpsSu66IFyTTUc= Subject: Re: AWS CloudWatch Logs Agent To: Rafal Lukawiecki , freebsd-cloud@freebsd.org References: <4FFC6F3B-E8A1-49EE-A05A-C6B9B0A615FF@rafal.net> From: Colin Percival Message-ID: <0100015e3565112c-406dc3cb-8399-4597-b0eb-8528bb6319d5-000000@email.amazonses.com> Date: Wed, 30 Aug 2017 23:06:09 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <4FFC6F3B-E8A1-49EE-A05A-C6B9B0A615FF@rafal.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SES-Outgoing: 2017.08.30-54.240.8.56 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2017 23:06:12 -0000 On 08/30/17 07:07, Rafal Lukawiecki wrote: > One nice AWS component is its CloudWatch Logs engine that collects streams > of syslog-generated data and centralises them, with a simple but usable UI. > AWS provides an automated set-up for the awslogs daemon agent, but from a > cursory look at the code, although parts of it are plain Python, much of it > is very Linux-focused shell script, with much regard for runlevels, > logrotate etc and not immediately usable as an rc.d script. > > I was wondering if anyone has hacked that script yet to run on FreeBSD or > if you have any other suggestions how to help me get AWS CloudWatch Logs > integrated into FreeBSD running on AWS. Huh, somehow I never noticed CloudWatch Logs; the aspect of CloudWatch I had been thinking could be useful for FreeBSD was to create an agent which would record memory/swap/disk usage to CloudWatch. Unfortunately I don't have time to work on either right now; but for a very simple proof of principle I'd suggest running the Linux CloudWatch Logs agent via the Linux emulation system. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid