Open deama opened 1 year ago
I've tried setting the resourceNames to view:
const resourceNames = ['projects/production-logs/locations/global/buckets/prod/views/_AllLogs'];
And whilst that is what is said in the documentation: https://github.com/googleapis/nodejs-logging/blob/main/src/v2/logging_service_v2_client.ts [line 772]
projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
It compiles fine, and it gives me the entries, however if I now try and make a filter specific to the bucket in question, e.g a filter that only that bucket should contain, it gives me 0 entries, even though manually checking it displays actual entries. So looks like it still applies the getEntries on the project only rather than the logging bucket.
So I have the following function here:
What I'm having an issue is I have my production logs stored in a logging bucket called "prod", however the above code only works on the project scope rather than on a per-bucket scope, so it basically can't find the logs, because it can't see the logging bucket.
Is there a way to direct it so that it sends the request to a specific logging bucket? I can't find much online, and I have found a function in the source code for the loggin API about retreiving a list of logging buckets in the project, which works, but how do I set it to use that bucket now?
Btw, I hardcoded the timestamp for now to keep it simple.