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 — [Feature] gcloud-logging · Issue #842 · googleapis/google-cloud-node

[Feature] gcloud-logging #842

New issue
Copy link
New issue
Copy link
Closed
Closed
[Feature] gcloud-logging#842
Copy link
Assignees
jgeewax
Labels
api: loggingIssues related to the Cloud Logging API.

Description

@VikramTiwari
VikramTiwari
opened on Sep 1, 2015
Issue body actions

Is there any plan to include logging api in this package? If so what is the expected timeline?

Link: https://cloud.google.com/logging/docs/api/gcloud-logging

Activity

Next
  1. jgeewax commented on Sep 1, 2015

    @jgeewax
    jgeewax
    on Sep 1, 2015
    Contributor
    More actions

    PR's are welcome ! :)

    Seriously though -- I think @stephenplusplus may be able to help answer....?

  2. stephenplusplus commented on Sep 1, 2015

    @stephenplusplus
    stephenplusplus
    on Sep 1, 2015
    Contributor
    More actions

    I think the next two APIs we want to implement are Resource Manager and logging. A rough guess is probably an ETA of early-Mid October for both. PRs definitely welcome to speed up the process :)

  3. VikramTiwari commented on Sep 1, 2015

    @VikramTiwari
    VikramTiwari
    on Sep 1, 2015
    Author
    More actions

    @jgeewax @stephenplusplus There's already some work going on with trace, I am guessing that they will also include logs in the lib once everything is stable on the core api end. Best will be to have that whole lib included in this project.

    As for PRs, step 0 - forking done! 👍 :)

  4. stephenplusplus commented on Sep 4, 2015

    @stephenplusplus
    stephenplusplus
    on Sep 4, 2015
    Contributor
    More actions

    Awesome, keep us posted! Feel free to send a PR whenever you have something ready to discuss or get feedback on; don't worry about waiting until it's perfect. I'll tackle supporting Resource Manager first, but feel free to ping me for any help with logging.

    Thanks for helping!

  5. stephenplusplus
    added
    api: loggingIssues related to the Cloud Logging API.
    on Sep 4, 2015
  6. stephenplusplus commented on Sep 15, 2015

    @stephenplusplus
    stephenplusplus
    on Sep 15, 2015
    Contributor
    More actions

    @VikramTiwari I'm getting started on this. I'll hopefully have a preliminary PR up for review in a couple days.

  7. VikramTiwari commented on Sep 15, 2015

    @VikramTiwari
    VikramTiwari
    on Sep 15, 2015
    Author
    More actions

    @stephenplusplus Aha! Nice. 😄 Sorry but i have been busy hence couldn't contribute anything.

  8. stephenplusplus commented on Sep 15, 2015

    @stephenplusplus
    stephenplusplus
    on Sep 15, 2015
    Contributor
    More actions

    No problem at all! Just make sure to leave some time to test it out for us :)

  9. VikramTiwari commented on Sep 15, 2015

    @VikramTiwari
    VikramTiwari
    on Sep 15, 2015
    Author
    More actions

    haha Alrighty! Committed for that. :)

  10. stephenplusplus commented on Sep 15, 2015

    @stephenplusplus
    stephenplusplus
    on Sep 15, 2015
    Contributor
    More actions

    @jgeewax running into "The caller does not have permission" API errors while testing my Logging implementation. Specifically, it's a call to https://cloud.google.com/logging/docs/api/ref/rest/v1beta3/projects.sinks/create -- I'm guessing service accounts aren't sufficient for this API?

  11. jgeewax commented on Sep 16, 2015

    @jgeewax
    jgeewax
    on Sep 16, 2015
    Contributor
    More actions

    @munangst : Does projects.sinks/create require 3LO? Or can a service account do that?

  12. munangst commented on Sep 16, 2015

    @munangst
    munangst
    on Sep 16, 2015
    More actions

    The issue is that sinks.create (and also sinks.delete, sinks.update, and logs.delete) requires the caller to be a project owner, and service accounts can't be owners. Our expectation was that typically these operations are infrequent (since they set up long-lived log export destinations) and users would perform them manually as an admin using gcloud or the Developers Console. However, we've gotten some recent feedback that users want to manage log sinks with service accounts (e.g., to allow automation to set up new projects) so we're reconsidering this. We're also planning to support Cloud IAM policies in the future so that you can manage permissions at a level finer than Project Viewer/Editor/Owner.

    Can you explain a bit more about the use case? Is it feasible to pass the user's credentials for this operation instead of using a service account?

  13. stephenplusplus commented on Sep 16, 2015

    @stephenplusplus
    stephenplusplus
    on Sep 16, 2015
    Contributor
    More actions

    I can't come up with a specific use case, but in general our library make the upstream APIs available for any of our users to easily fit into theirs. We do run into these one-off/bootstrap procedures from time to time that are best done with a UI (Pub/Sub creating a topic, Storage creating a bucket). In this case, since our library has full support for Storage, and a possible sink can be a bucket, if a user did have a need for programmatic creation of a sink, we can simplify the connection between a new sink and a Bucket destination:

    var gcloud = require('gcloud')({
      projectId: 'my-project-id',
      keyFilename: 'path-to-service-account-keyfile.json'
    });
    
    var storage = gcloud.storage();
    var logging = gcloud.logging();
    
    logging.createSink('new-sink-name', {
      destination: storage.bucket('logging')
    }, function(err, sink) {});

    Internally, that would grant the logging account as an owner on the bucket, create the sink, and give the user programmatic access to make further modifications to the sink (getting/setting metadata, deleting).

    @jgeewax might be able to speak to specific use cases.

    Is it feasible to pass the user's credentials for this operation instead of using a service account?

    As far as I know, this would be pretty tricky. In production, a user would be using our library headlessly, so I'm not sure how the user auth process would begin. This could just be due to my still-maturing familiarity with all of the auth options, so if anyone can explain how we can easily get the credentials we need, please correct me.

  14. jgeewax commented on Sep 20, 2015

    @jgeewax
    jgeewax
    on Sep 20, 2015
    Contributor
    More actions

    Is it feasible to pass the user's credentials for this operation instead of using a service account?

    It really should be...

    For example, the resource manager API only works with user account credentials... so this should look like

    $ gcloud auth login
    $ node myscript.js
    

    And myscript should use the user-creds .... Do we really not do that anywhere in our auth situation?

  15. stephenplusplus commented on Sep 20, 2015

    @stephenplusplus
    stephenplusplus
    on Sep 20, 2015
    Contributor
    More actions

    Do we really not do that anywhere in our auth situation?

    We do via https://github.com/google/google-auth-library-nodejs. We get a token successfully this way, and pass it with the request. The response is still "The caller does not have permission" -- does this mean I'm getting a token that doesn't work? Or maybe my project/account needs to be whitelisted?

  16. 37 remaining items

  17. sofisl
    added 5 commits that reference this issue on Jan 28, 2026

    chore(deps): update dependency jsdoc-region-tag to v2 (#842)

    cca1450

    chore(deps): update dependency jsdoc-region-tag to v2 (#842)

    75bbcc1

    chore(deps): update dependency jsdoc-region-tag to v2 (#842)

    2ed8f42

    chore(deps): update dependency jsdoc-region-tag to v2 (#842)

    09523f1

    chore: create flakybot.yaml (#842)

    8f7e7b6
  18. sofisl
    added a commit that references this issue on Feb 17, 2026

    chore: create flakybot.yaml (#842)

    4bb40cd
  19. sofisl
    added 2 commits that reference this issue on Feb 24, 2026

    fix: support Objects created with Object.create({}) (#842)

    6779945

    chore: release 3.3.0 (#842)

    d934350
  20. GautamSharda
    added 2 commits that reference this issue on Mar 5, 2026

    chore(deps): update dependency nock to v13 (#842)

    3e240b2

    chore: update owlbot-nodejs dependencies (#842)

    5d7350f
  21. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    chore: release 3.3.0 (googleapis#842)

    e0b8d42
  22. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    chore: use repo metadata to populate nodejs CODEOWNERS (#842)

    86a1f6c

    chore: use repo metadata to populate nodejs CODEOWNERS (#842)

    8568e78
  23. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    chore: use repo metadata to populate nodejs CODEOWNERS (#842)

    1e0fb91
  24. thiyaguk09
    added a commit that references this issue on May 5, 2026

    chore: use repo metadata to populate nodejs CODEOWNERS (googleapis#842)

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

Metadata

Metadata

Assignees

  • @jgeewax
    jgeewax

Labels

api: loggingIssues related to the Cloud Logging API.

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.