Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 944ED18809 for ; Tue, 25 Aug 2015 15:21:27 +0000 (UTC) Received: (qmail 85270 invoked by uid 500); 25 Aug 2015 15:21:27 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 85239 invoked by uid 500); 25 Aug 2015 15:21:27 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 85225 invoked by uid 99); 25 Aug 2015 15:21:27 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2015 15:21:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 95A081AACC7 for ; Tue, 25 Aug 2015 15:21:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id QPSjTLXlkTDk for ; Tue, 25 Aug 2015 15:21:26 +0000 (UTC) Received: from mail-qg0-f54.google.com (mail-qg0-f54.google.com [209.85.192.54]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id C466320865 for ; Tue, 25 Aug 2015 15:21:25 +0000 (UTC) Received: by qgeg42 with SMTP id g42so108731442qge.1 for ; Tue, 25 Aug 2015 08:21:25 -0700 (PDT) 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:content-type:content-transfer-encoding; bh=7QfZth0sGuOi0F81adZrmQweb2U/FJLrwhTSUJXyPa8=; b=vFccA73IZbDx86nScimVmOZPmwTvWONGkLU1oKUJzheKbgI2FneTVyEDV+vr4Hg2Je sVdsg5E8y9NRXstKxY7JwitH9q8eSqXkt8pgCMnmAU+6QNutEgkqOsyWYWtPxGPwsxMX OIykv4Q59BRETj+iiCvy43xdPDSAmFxoY7fzjL/w+Ppkqj95Xmi3MeMkG1OQFWKH1HKR dcqLHm7AaES4wARPu4f6rE3J8WSjxkBowfiZ6AzSk229c15vXi9gz03xibBJhpJfU9j+ U8wU2Z/nI40T/7nZgqQHuEms4JJiLPvb6O3ZzzJb3OrByYAW7Avq8kDWLMj6G43+atxx GCUA== X-Received: by 10.140.234.139 with SMTP id f133mr70347518qhc.61.1440516084987; Tue, 25 Aug 2015 08:21:24 -0700 (PDT) Received: from [10.1.202.80] (pool-96-255-2-208.washdc.fios.verizon.net. [96.255.2.208]) by smtp.googlemail.com with ESMTPSA id z202sm13865553qhd.15.2015.08.25.08.21.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Aug 2015 08:21:23 -0700 (PDT) Message-ID: <55DC87F3.2040701@gmail.com> Date: Tue, 25 Aug 2015 11:21:23 -0400 From: Hadrian Zbarcea User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: dev@brooklyn.incubator.apache.org Subject: Re: Brooklyn logstash enricher References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Shouldn't this be a policy? Hadrian On 08/25/2015 10:45 AM, Duncan Grant wrote: > I'm considering adding logstash functionality so that a blueprint can be > extended so that logstash is installed on each vm and collect logs and > forward them to something like elastic search. > > My initial plan is to create a logstash enricher that can be attached to an > entity. It would install logstash and configure it to look at the parent > entity's log location. The filter and output config would be configurable > on the enricher making it fairly straightforward to configure where the > logs are sent e.g. elastic search. > > So yaml might look something like > > services: > -type: BasicEntity > brooklyn.enrichers: > - type: Logstash > brooklyn.config: > input: > file > path: "/path/to/file" > filter: > grok: > match: > message: "%{COMBINEDAPACHELOG}" > output: > elasticsearch > protocol: "http" > > With default behaviour for each of input, filter, output if they are not in > the yaml. > > Does this make sense? > > Regards > > Duncan >