Questions tagged [google-cloud-logging]

Google Cloud Logging collects and stores logs from applications and services on the Google Cloud Platform

Introduction

Google Cloud Logging collects and stores logs from applications and services on the Google Cloud Platform:

  • View your logs with the Logs Viewer.
  • Export your logs to Google Cloud Storage, Google BigQuery, or Google Cloud Pub/Sub.
  • Integrate third-party logs from your virtual machine instances by installing the logging agent, google-fluentd.

Cloud Logging saves metadata with every log entry so that you can tell when the log entry was created, from what resource or instance it came, what its severity level is, and so forth. The log entry's original content, or payload, might be saved as a text string or as a structured object, depending on the log type.

Official documentation

622 questions
2
votes
0 answers

Is it possible to chart historical data with Google Cloud Logging?

I have some logs in Cloud Logging. I did not create metrics before the logs came in, so I do not have any metrics containing this data. I'd like to visualize this data in a chart. Is this possible? I see from this answer (Can't display data with…
2
votes
0 answers

Google Cloud run failed to start

I'm trying to deploy a container to cloud run, but my deploy fails because of this error: Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable. Logs for this revision might…
2
votes
0 answers

How to monitor Project creation using GCP Logging

I(GCP admin user) have a GCP organization called example.com and I want to monitor whenever there is a GCP project being created by some user in the organization. So I created a GCP Project A and go to Stackdriver Loggin page to search for logs.…
2
votes
2 answers

FATAL log is marked as INFO on Google Cloud Kubernetes

I have an app using Rails 2.5.1 which is deployed on Google Cloud Kubernetes but the logs are not working good.The FATAL errors are displayed as INFO logs instead of ERROR or CRITICAL. Extra context: Rails 5.2.1 This view is from Logs Viewer I'm…
2
votes
0 answers

How to configure GKE to save control plane logs only?

My GKE cluster has many pods that I don't control. Some of these pods produce an excessive amount of logs. These logs are all sent to Stackdriver Logging which becomes very expensive for me to ingest. I've turned off log ingestion to save money, but…
2
votes
1 answer

Stackdriver stopped logging from GKE Containers

Logs from Spring Boot applications deployed to GKE stopped showing up in Stackdriver Logging after February 2nd 2020. What happened around that time is that Stackdriver moved to a new UI, more integrated with the GCP console - could that have…
2
votes
0 answers

Stackdriver logging not capturing all logs in GKE

logging: Stackdriver logging not capturing all logs in GKE We have implemented logging in our flask application which is containerized, all the logs get captured when running in local docker environment and only first few logs are getting captured…
2
votes
1 answer

Google Cloud Stackdriver ignores formatting in Python logs

I'm deploying a Cloud Function with the python37 runtime. Thanks to this question I know that I can hook up the Python native logger to Stackdriver logging. So my Cloud Function looks like this: import…
2
votes
2 answers

Google StackDriver correlating logs with parent request python 3

In python 2.7, the app engine sdk was doing the work in the background to nest all logs with the parent request to have a correlation in Google StackDriver. As of the transition to python 3, it is through the usage of google cloud logging or…
2
votes
1 answer

How do I view auditlogs from Dialogflow in gcp Logs

I activated Audit logging for the Dialog API in my GCP Project, now i want to see if a new intent was added in the logs. But on the logging monitor is nothing
Flex
  • 23
  • 5
2
votes
1 answer

Instance attributes are not available in metadata

I'm setting up a new K8S Cluster (1.13.7-gke.8) on GKE and I want the Google cloud logging API to report properly namespace and instance names. This is executed in a new GKE cluster with workload-identity enabled. I started workload container to…
2
votes
5 answers

Logs from GCF in Go doesn't contains log level

I am trying send info/error logs to StackDriver Logging on GCP from Cloud Function written in Go, however all logs dosen't have log level assignment. I have created function from…
nephe
  • 21
  • 4
2
votes
2 answers

How do I use Google's Identify Platform to authenticate against Cloud Endpoints?

In our organisation we use the Google Kubernetes Engine (GKE) to implement a micro-service architecture. As we are also G-Suite users, everyone in the organisation is guaranteed to have a Google account. In consequence we would like to use those…
2
votes
1 answer

Google Cloud Platform - can I discover reason for 403 response?

I am using https://dataproc.googleapis.com/v1/projects/{projectId}/regions/{region}/clusters to create GCP Dataproc clusters as described at https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.clusters/create. I am using…
jamiet
  • 10,501
  • 14
  • 80
  • 159
2
votes
1 answer

GKE Stackdriver not parsing json

I have a GKE deployment in the default namespace of my cluster writing json out to stdout. For some reason the lines are being picked up as a textPayload (pasted below) instead of a json payload. Stackdriver is receiving the logs but not parsing the…