28 questions
0
votes
1
answer
84
views
Laravel logs show incorrect severity levels in Google Cloud Logging
I’m running a Laravel application using the dunglas/frankenphp:1.9-php8.4-alpine Docker image and deploying it on Kubernetes. Logs are written to stderr and collected by Google Cloud’s built-in per-...
0
votes
1
answer
419
views
How do you change the log scope of a log sink?
I have several log sinks configured to sink into a log bucket I created in one project- not the default log bucket.
Now I want to create a log sink in that project that ships logs somewhere with pub/...
0
votes
1
answer
478
views
Google Cloud Platform Secret Manager API 403 Error
In our project that runs in the Google Cloud Platform (GCP) we are seeing the following HTTP 403 error in the Google Cloud Console / APIs & Services:
google.cloud.secretmanager.v1....
0
votes
1
answer
126
views
Creating logs-based alert based on number of rows inserted
I'm attempting to set up a logs-based alert in GCP Log Explorer to monitor a table that receives new records daily. Occasionally, the number of records is low, sometimes below 1000. In such cases, I'd ...
2
votes
0
answers
916
views
Google Vertex AI logging not happening for managed Jupyter notebook execution
I have a python code inside google cloud managed Jupyter notebook. I am running this notebook by using using the 'Execute' button in notebook. This creates a job which can be seen in vertex-ai/...
1
vote
0
answers
502
views
Cloud Run Jobs container exits before all the logging is complete
When viewing the logs for a specific task for cloud run job:
For multiple tasks I see:
Container called exit(0). which indicates the job ran successfully. However, it is missing bunch of logs before ...
2
votes
1
answer
250
views
/v2/entries:tail always returns "INVALID_ARGUMENT"
I am trying to use this API endpoint here: https://cloud.google.com/logging/docs/reference/v2/rest/v2/entries/tail
But it does not seem to work as documented:
curl -s \
-H 'authorization: Bearer x'...
0
votes
2
answers
187
views
How to get the list of columns that the user has access to
Is there any way(with query/python method) to get all the columns a user has in bigquery table?
my requirement is
userA: TableA.column1, TableA.column2,TableA.column4
userB: TableA.column1, TableA....
0
votes
0
answers
767
views
In Google Cloud Logging, why are log messages shown out of order?
I have a Java program running in a pod in the Google Kubernetes Environment. In GCP, there is a default logging router that routes stdout and stderr to the GCP Logging app. We have added one exclusion ...
1
vote
1
answer
451
views
Google login does not work on Android after publication in Google Play (Flutter )
I really need help because I'm completely out of ideas.
Task: I was given a Flutter app that has already been published for several years and was asked to fix the Google login (Firebase) on Android ...
1
vote
2
answers
156
views
What is the minimum required JSON fields for a logged ERROR to end up in Google Cloud Error Reporting
The minimum JSON for a structured error message to be parsed in by google (i.e. be marked as debug/info/error/... in the GCP logs) is {"severity":"ERROR","message":"...
0
votes
1
answer
1k
views
How to match URL path using Google RE2 regex
Google Cloud Platform lets you create label logs using the RE2 regex engine.
How can I create a regex that matches the path in the URL?
Examples matches:
https://example.com/awesome --...
1
vote
0
answers
985
views
How to add @google-cloud/logging for React native
I want to implement @google-cloud/logging for React native. I tried it in firebase functions side and Node.js.
I tried above one and followed this link Google cloud log demo its working in node.js and ...
1
vote
0
answers
111
views
Got these errors after changing the version of Stackdriver Logging to v2 in Golang
When I updated my appengine logging version to v2. I got these errors.
Package: google.golang.org/appengine/v2/log
import (
"context"
"google.golang.org/appengine/v2/log"
)
...
1
vote
0
answers
719
views
How to set type of jsonPayload in BigQuery logging sink?
I have created a Google Cloud Logging sink to BigQuery. When a log is first sent to the sink, a schema for the BQ table is generated as described here. So for example if I log JSON like this:
{
&...
0
votes
1
answer
913
views
GCP logger filter missing fields
My application runs in NodeJS in GCP Cloud Run, it uses the REST API and logs the request object. I'm trying to filter out results with missing field locationId in jsonPayload.req.body.destination ...
2
votes
1
answer
1k
views
Google LoggingAppender and stdout
For debugging/testing purposes, I would like Google's Logback LoggingAppender to write to STDOUT instead to connect to Google's Logging API. According to https://github.com/googleapis/java-logging-...
0
votes
0
answers
63
views
Google Logging List endpoint does not show application logs though the client library shows them
My Rails application needs to pull filtered logs from Google Cloud. I first implemented it via the official google-cloud-logging library, but the Ruby implementation is painfully slow, and each ...
1
vote
0
answers
1k
views
GCP log explorer find duplicated specific text message
I am trying to find some duplicated log like for example:
"[entry] shipmentOrder 1234"
"[entry] shipmentOrder 1234"
"[entry] shipmentOrder 1235"
"[entry] ...
0
votes
1
answer
1k
views
How to map permissions to roles
Permission denied. Please get bigquery.jobs.listExecutionMetadata or bigquery.jobs.listAll permission at organisation level to access Admin Resource Charts.
I am getting the above error while trying ...
0
votes
1
answer
74
views
Send user to the page they requested before Signing in with google, after they sign in with google
I have a movie quiz app https://www.quizsocial.xyz/, where users can search for a trending movie and take a quiz about the movie’s story, so when they land on the homepage, they search for their movie,...
0
votes
1
answer
532
views
Use log filenames as Log names on Google logging
How could I use log filenames as log names on google logging.
I have this on google-cloud-ops-agent/config.yaml
logging:
receivers:
nginx_access:
type: nginx_access
nginx_error:
...
0
votes
0
answers
430
views
How to add filters for alerts
What field in the terraform resource "google_monitoring_alert_policy" added filters for google logging alerts?
2
votes
4
answers
3k
views
google cloud platform -- creating alert policy -- how to specify message variable in alerting documentation markdown?
So I've created a logging alert policy on google cloud that monitors the project's logs and sends an alert if it finds a log that matches a certain query. This is all good and fine, but whenever it ...
1
vote
0
answers
428
views
Searching google cloud logs with a bit of context (logs matching a keyword and few logs before and after the matching log.)
When searching kubernetes logs I can add a bit of context to my search using the below command, which will return the logs matching my keyword as well as the 3 logs preceding and following any log ...
1
vote
1
answer
1k
views
BigQuery and Data Studio usage (cost)
I wanted to view the BigQuery costs in my project. I am downloading logs to the table according to the following function:
resource.type = "bigquery_resource"
protoPayload.methodName = "...
2
votes
1
answer
4k
views
How can i extract a log that contains a variable with REGEXP_EXTRACT in google_logging_metric?
I am really new to GCP and creating metrics. We use Grafana to display the count of event logs with the help of "google_logging_metric" created.
My use case was Let's say we have a log
The ...
0
votes
1
answer
603
views
Sink all projects under an organisation into a bigtable
I am building a similar approach to bring all the logs into BigQuery dataset. As per this https://dev.to/alvardev/gcp-cloud-logging-the-basis-45eh I am able to bring the project log details into the ...