Mike, I'm interested to hear about where this command breaks down for you, and how you might do it together differently...To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.On Tue, Nov 12, 2013 at 6:05 PM, James Bayer <jba...@gopivotal.com> wrote:
that matches my understanding as to how it works. i haven't tried the drain url with a user provided service yet, but i have seen them drain into a different service that is specially configured for logging automatically without the user specifying the drain (pivotal analytics). it's up the the service author to say whether their service can support that. user provided is a work-around when those aren't available.On Tue, Nov 12, 2013 at 3:01 PM, Mike Youngstrom <you...@gmail.com> wrote:This `gcf -l` stuff confuses me.I must be missing something. So, I'm going to restate what I'm seeing here in the hope that I will be enlightened. :)So, the question as I understand it is. How can I drain my application's loggregator entries to an external log provider like splunk or syslog?The answer as I see it here is:* Create a user-provided-service* Specify the url to the service I wish to drain to using -l* Bind this service to my application.* CC/Loggregator will then drain application logs to all drail url parameters associated with user-provided-services I've created and bound to my application.Is that correct? That seems bad to me in several ways. But, I'd prefer to see if my understanding of this is correct before I get into the issues. :)MikeTo unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.On Sat, Nov 9, 2013 at 8:32 AM, James Bayer <jba...@gopivotal.com> wrote:
well, we do have some additional functionality in v147, which is to register a syslog drain by binding a user-provided-service that was created with the gcf beta using the -l log drain parameter.
drain log messages are formatted according to RFC5424 [1]. the log messages are delivered over tcp as described in RFC6587 [2], using the octet counting framing method.
we have not put mileage on this yet, so there may be issues.
$ gcf h cups NAME: create-user-provided-service - Make a user-provided service available to cf apps ALIAS: cups USAGE: gcf create-user-provided-service SERVICE_INSTANCE [-p PARAMETERS] [-l SYSLOG-DRAIN-URL] Pass comma separated parameter names to enable interactive mode: gcf create-user-provided-service SERVICE_INSTANCE -p "comma, separated, parameter, names" Pass parameters as JSON to create a service non-interactively: gcf create-user-provided-service SERVICE_INSTANCE -p '{"name":"value","name":"value"}' EXAMPLE: gcf create-user-provided-service oracle-db-mine -p "host, port, dbname, username, password" gcf create-user-provided-service oracle-db-mine -p '{"username":"admin","password":"pa55woRD"}' gcf create-user-provided-service my-drain-service -l syslog://example.com gcf create-user-provided-service my-drain-service -p '{"username":"admin","password":"pa55woRD"}' -l syslog://example.com OPTIONS: -p '' Parameters -l '' Syslog Drain Url[1] https://tools.ietf.org/html/rfc5424
[2] https://tools.ietf.org/html/rfc6587#section-3.4.1
On Thu, Nov 7, 2013 at 4:26 PM, Tammer Saleh <tam...@pivotallabs.com> wrote:
We don't have that ability as of yet, without writing your own log drain broker. Also, we don't have the ability to drain logs for all applications in a space - drains are bound to apps directly.Cheers,Tammer SalehOn Thu, Nov 7, 2013 at 3:58 PM, Dr Nic Williams <drnicw...@gmail.com> wrote:Tammer, perhaps an example for draining/multiplexing "all the apps" into logstash? Or is it trivial is I sit down to look at it?On Thu, Nov 7, 2013 at 3:53 PM, Tammer Saleh <tam...@pivotallabs.com> wrote:
Not yet, but we're working with logging partners to get that into production as soon as possible.To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.Cheers,Tammer SalehOn Thu, Nov 7, 2013 at 3:45 PM, David Laing <da...@davidlaing.com> wrote:Very exciting! Thank you's all round.Q: The Loggregator readme [1] talks about "...drain their application logs to 3rd party log archive and analysis services"Has this functionality also been delivered in v147?;D
[1] https://github.com/cloudfoundry/loggregator#features
On Thursday, 7 November 2013, James Bayer wrote:To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.Tuesday the CF team created cf-release v147 [1].
This release includes loggregator and we have turned that on for all users in run.pivotal.io, which now has v147 deployed. This means if you use the latest gcf [2] (the beta go cf cli) then you can see loggregator working with the
gcf logs myappcommand. Attached some example output. We're thrilled to have this per-app aggregated logging capability now available and recommended for production use. We will not be back-porting the loggregator functions to the ruby cf cli and the existing logs should continue to work there by connecting to a single app instance log unaggregated. Expect to see another announcement shortly from Scott Truitt about the gcf beta information.There are several known issues with loggregator:
- staging logs will be truncated if they are too long
- during
gcf pushstaging logs may miss some of the early part of the staging logs due to a race condition- some log lines don’t recognize newlines
[1] https://github.com/cloudfoundry/cf-release/tree/v147
[2] https://github.com/cloudfoundry/cli#downloading-edge--Thank you,James Bayer
--
David Laing
Open source @ City Index - github.com/cityindex
http://davidlaing.com
Twitter: @davidlaing
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
--Thank you,James BayerTo unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
--Thank you,James BayerTo unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
* Figure out a more generic way for system explicit configuration to make it into a service without having to customize CC. Custom service developers want add features to CC similar to loggregator drain. Core CF developers and thirdparty custom service developers should be able to do this the same way without needing to customize CC. This thread is a good discussion on the topic. https://groups.google.com/a/cloudfoundry.org/forum/#!searchin/vcap-dev/tags/vcap-dev/qOT2dwkcOnM/1udwt0fHT9EJ
The issue is that automatic stdout syslog draining can be a security issue if the user isn't aware that the service provides this functionality. This is fundamentally different from a 3rd party DB, since the user must still explicitly use the DB after provisioning. With stdout syslog draining, potentially sensitive information will be automatically sent to the service as soon as the service is provisioned.