GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Logging Handler Should Have Fluentd Transport · Issue #1130 · googleapis/google-cloud-java

Logging Handler Should Have Fluentd Transport #1130

New issue
Copy link
New issue
Copy link
Closed
Closed
Logging Handler Should Have Fluentd Transport#1130
Copy link
Assignees
jabubake
Labels
api: loggingIssues related to the Cloud Logging API.priority: p2Moderately-important priority. Fix may not be included in next release.triaged for GAtype: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@waprin
waprin
opened on Jul 25, 2016
Issue body actions

This might be a "nice-to-have", but a Java logging handler that logs by writing to the fluentd handler could be helpful. Biggest consideration here is whether it would perform better than the current one. fluentd is installed on App Engine flexible and can be included in GKE clusters with click of a button so it's good to integrate with it.

Activity

  1. mziccard commented on Aug 8, 2016

    @mziccard
    mziccard
    on Aug 8, 2016
    Contributor
    More actions

    Hi @waprin, you mean having a JUL handler that logs entries to fluentd? While this is surely a "nice-to-have" (I am surprised it does not exist yet) I doubt that gcloud-java is the right place for it.

  2. mziccard
    added
    api: loggingIssues related to the Cloud Logging API.
    on Aug 8, 2016
  3. waprin commented on Aug 8, 2016

    @waprin
    waprin
    on Aug 8, 2016
    Author
    More actions

    Yep that's what I meant. Both GAE Flexible and GKE install the logging agent and it's one of the main ways we recommend communicating with logging API (though having an option to just use the API directly is also good).

    I personally think it does belong in the gcloud-* libraries but opinions in general seemed mixed and might be decided on a per-language basis. Just wanted it on the radar.

  4. mziccard commented on Aug 10, 2016

    @mziccard
    mziccard
    on Aug 10, 2016
    Contributor
    More actions

    I personally think it does belong in the gcloud-* libraries

    If I understood correctly such a handler should serve as a way to direct log entries produced with JUL to fluentd. Even though I see it could be used in both GAE and GKE, such a handler is not directly related to Stackdriver Logging. In fact, it could be also useful in circumstances where fluentd is used with a different target. I would imagine this is something fluentd people might be interested in providing users with.

    For this reason I believe that gcloud-java is not the best place for this bridge between JUL and fluentd.

  5. waprin commented on Aug 10, 2016

    @waprin
    waprin
    on Aug 10, 2016
    Author
    More actions

    Even though I see it could be used in both GAE and GKE, such a handler is not directly related to Stackdriver Logging.

    It is related because on GAE and GKE, there is a special file /var/log/app_engine/app.log.json along with a certain structured format necessary to get logs to show up correctly. Take a look at:

    https://github.com/GoogleCloudPlatform/winston-gae/blob/master/lib/winston-gae.js

    I understand what you're saying, but I'm not proposing a generic fluentd JUL handler, which doesn't make sense anyway since fluentd is an agent that can read from any file. What I'm proposing is a handler that writes to the files in a way that the default fluentd agent that we direct users to install here:

    https://cloud.google.com/logging/docs/agent/installation

    will correctly pick up log levels, etc. Currently if you just write to standard out on GAE Flex the fluentd agent does actually pick it up but because of this lack of structure does not capture log levels.

    See pissed off customer here:

    http://stackoverflow.com/questions/37420400/how-do-i-map-my-java-app-logging-events-to-corresponding-cloud-logging-event-lev

  6. waprin commented on Aug 10, 2016

    @waprin
    waprin
    on Aug 10, 2016
    Author
    More actions

    Also if you read the answer to that StackOverflow question, the log levels are captured correctly only in the 'compat' runtime, because someone actually did this work in this runtimes so log work as expected, but really it should work in the vanilla runtime as well, but being 'vanilla' we have to ask users to instrument some sort of client library to do so. As you can see, NodeJS created a whole repo just for that one tiny piece of code, which is an opinion thing as mentioned but I personally think it makes sense to include some of that code here.

  7. lesv commented on Aug 16, 2016

    @lesv
    lesv
    on Aug 16, 2016
    Contributor
    More actions

    Bill - would https://github.com/fluent/fluent-logger-java help us in any way? Or this

  8. lesv commented on Aug 16, 2016

    @lesv
    lesv
    on Aug 16, 2016
    Contributor
    More actions

    BTW - I'm asking that all supported Java Frameworks including logging correctly, like java-compat.

  9. garrettjonesgoogle
    added
    triaged for beta
    on Nov 23, 2016
  10. garrettjonesgoogle
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    and removed
    triaged for beta
    on Dec 9, 2016
  11. garrettjonesgoogle
    added
    triaged for GA
    on Jan 26, 2017
  12. lesv
    assigned
    jabubake
    on Feb 23, 2017
  13. michaelbausor
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Jul 7, 2017
  14. danoscarmike commented on Aug 9, 2017

    @danoscarmike
    danoscarmike
    on Aug 9, 2017
    Contributor
    More actions

    @jabubake is this being actively worked on or still in 'nice-to-have' bucket? If latter, I'd like to move to our feature backlog and close this issue. Thanks!

  15. jabubake commented on Aug 9, 2017

    @jabubake
    jabubake
    on Aug 9, 2017
    Contributor
    More actions

    @danoscarmike : 'nice-to-have'

  16. danoscarmike commented on Aug 9, 2017

    @danoscarmike
    danoscarmike
    on Aug 9, 2017
    Contributor
    More actions

    Thanks @jabubake!

    This has been added to our feature backlog: https://github.com/GoogleCloudPlatform/google-cloud-java/wiki/Feature-backlog. This issue will be closed but is linked in the backlog and can continue to be used for comment and discussion.

  17. danoscarmike
    closed this as completedon Aug 9, 2017
  18. github-actions
    added 4 commits that reference this issue on Jun 29, 2022

    fix: Add `shopt -s nullglob` to dependencies script (googleapis#1130) (…

    bc73cf0

    chore: release 0.119.8 (googleapis#532)

    c6c091a

    fix: Add `shopt -s nullglob` to dependencies script (#1130) (#286)

    2101cc5

    chore: release 1.0.2 (#287)

    631e14b
  19. chingor13
    added 2 commits that reference this issue on Jan 22, 2026

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    2181847

    chore(main): release 2.16.1 (#1128)

    5ca3bfa
  20. suztomo
    added a commit that references this issue on Mar 23, 2026

    build(deps): bump cryptography from 38.0.3 to 39.0.1 in /synthtool/gc…

    b759710
  21. suztomo
    added 2 commits that reference this issue on Mar 30, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v2.2…

    95143a6

    chore(main): release 0.126.8 (#1131)

    4f2cbd2
  22. lqiu96
    added 2 commits that reference this issue on Apr 1, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v2.2…

    4eeb306

    chore(main): release 0.126.8 (#1131)

    87236f6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jabubake
    jabubake

Labels

api: loggingIssues related to the Cloud Logging API.priority: p2Moderately-important priority. Fix may not be included in next release.triaged for GAtype: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.