From owner-freebsd-cloud@freebsd.org Wed Aug 30 23:45:49 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 8782DE0CE86 for ; Wed, 30 Aug 2017 23:45:49 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from vps-mail.nomadlogic.org (unknown [IPv6:2607:f2f8:a098::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 69F9184FF4 for ; Wed, 30 Aug 2017 23:45:49 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.26] (cpe-23-242-94-236.socal.res.rr.com [23.242.94.236]) by vps-mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id da4dfd39 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Wed, 30 Aug 2017 16:45:48 -0700 (PDT) Subject: Re: AWS CloudWatch Logs Agent To: Rafal Lukawiecki Cc: freebsd-cloud@freebsd.org References: <4FFC6F3B-E8A1-49EE-A05A-C6B9B0A615FF@rafal.net> <0100015e3565144c-18dc3e52-fcba-4b30-bf2f-58b99b55562d-000000@email.amazonses.com> <456A3074-08D2-4141-81EF-5CD6B1B53899@rafal.net> <084bd6ad-9ffd-c097-1d46-c8cb41d745ee@nomadlogic.org> <0A93F7FC-5547-4A67-B3D9-BB59027FDAD6@rafal.net> From: Pete Wright Message-ID: Date: Wed, 30 Aug 2017 16:45:47 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <0A93F7FC-5547-4A67-B3D9-BB59027FDAD6@rafal.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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:45:49 -0000 On 08/30/2017 16:39, Rafal Lukawiecki wrote: > Dear Pete, that was my feeling too—I suspect that for someone more skilled than me in FreeBSD rc.d it should be realistically possible to port it, but the spaghetti nature of the awslogs script would also be something to contend with. I did a bit of searching, but the only reference to awslogs that I found on GH is this one: > > https://github.com/jorgebastida/awslogs > > While this looks like a good utility for CloudWatch Logs querying, it does not seem to deal with the agent and actual log collection. The AWS GitHub account does not seem to list anything related amongst their 70+ repositories... > > If you embark on such a port, I would be happy to test, help, and give feedback. On the other hand, please let me know if you find anything else that could be of use. Many thanks. hrm yea - so i did a bit of reading through that setup script and if i'm not mistaken it is actually installing the python package: https://pypi.python.org/pypi/awscli-cwlogs a majority of the code located at https://s3.amazonaws.com//aws-cloudwatch/downloads/latest/awslogs-agent-setup.py seems to configure the behaviour of awscli-cwlogs. i may poke at this later this week and see if i can get awscli-cwlogs working in my environment, if it looks good it may be a good starting point for a freebsd port of this functionality. also since it seems to be mostly python  code doing the actual log-shipping we might be in good shape. -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA