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
48
votes
6 answers

Google Cloud Functions Python Logging issue

I'm not sure how to say this but, I'm feeling like there is something under the hood that was changed by Google without me knowing about it. I used to get my logs from my python Cloud Functions in the Google Cloud Console within the logging…
26
votes
3 answers

Regular Expressions in Google Cloud Console Logging

How do you search Google App Engine logs in the new Cloud Console using regular expressions? This blog post suggests you just need to type regex:my.*query to search, but that does not seem to work in the logging console. When I do that, it…
speedplane
  • 15,673
  • 16
  • 86
  • 138
16
votes
1 answer

Show only certain payload field in stackdriver logging webview

We use Stackdriver as our logging agent for a Docker environment that we have. Payload comes in form: structPayload: { container: {…} data: "[2016-11-16 08:15:49] INFO Domain xxx apiKey validation passed." instance: {…} } The web…
jelums
  • 328
  • 3
  • 10
16
votes
2 answers

Output from Dataproc Spark job in Google Cloud Logging

Is there a way to have the output from Dataproc Spark jobs sent to Google Cloud logging? As explained in the Dataproc docs the output from the job driver (the master for a Spark job) is available under Dataproc->Jobs in the console. There are two…
13
votes
1 answer

ChromeOS errors in GCP Logging

I'm seeing errors in StackDriver logging for my Compute instance. The logs are showing repeated issues every hour, creating a lot of noise. I have a Spring Boot API deployed in a container to a VM in Compute Engine using latest stable version of…
12
votes
2 answers

How do I map my java app logging events to corresponding cloud logging event levels in GCP Felexible non-compat App Engine?

I am new to GCP AppEngine and I chose the Flexible environment for several reasons. However, I am shocked to find out that the flexible environment's non-"compatible" runtimes appear to not allow me to map my app's logging events to the appropriate…
12
votes
4 answers

Logs are Not Nested Under Requests in Flexible VM

I have a module running in App Engine Classic and another module running in App Engine Flexible. When viewing logs running in App Engine Classic, the log entries are nested within each request. However, when viewing logs running in App Engine…
speedplane
  • 15,673
  • 16
  • 86
  • 138
11
votes
1 answer

Google OAuth 2.0 client ID authorization via embedded webview

Setup: Website with Google login button Backend: nodejs + express Frontend: Google Sign-in for Web (I know it is deprecated and I need to upgrade) https://developers.google.com/identity/sign-in/web/build-button There is NO additional native Android…
11
votes
2 answers

Google Cloud Logging: show lines around the matched lines

Sometimes when searching logs by keyword or other conditions, I want to show not only the lines which match the condition, but also a few lines around them to better understand the context, similar to the -C flag of grep. Is this possible?
Dagang
  • 24,586
  • 26
  • 88
  • 133
11
votes
1 answer

Error using Google Stackdriver Logging in App Engine Standard python

My Stack: Google App Engine Standard Python (2.7) Goal: To create named logs in Google Stackdriver Logging, https://console.cloud.google.com/logs/viewer Docs - Stackdriver…
11
votes
1 answer

"gcloud app logs tail" shows week old data

I'm trying to stream logs for my Google Cloud Platform application. The first thing I notice is that Google sends about 10 healthchecks per second, at a minimum, so I have to grep -v /health to get any useful info. Is that standard? The second thing…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
10
votes
1 answer

Why is my GCP function logging errors that should be info or debug?

I've got a python 3.7 google cloud function integrating with google storage and google logging, so I've deployed a key file with the function and reference it using the GOOGLE_APPLICATION_CREDENTIALS environment variable. All works fine insomuch as…
Scott
  • 888
  • 7
  • 21
9
votes
0 answers

How to get google-cloud-ops-agent logging to recognize special "severity" field

I am running ZooKeeper on a google compute instance and trying to setup google-cloud-ops-agent to properly parse the logs. I am most of the way there, but am having trouble getting it to recognize the severity field. The docs state that severity is…
8
votes
2 answers

Find usage of HTTP Batch in storage api

I got notified that Googles JSON-RPC and Global HTTP Batch Endpoints are deprecated. The affected api is "storage@v1" and "Global Batch Endpoints" in my case. I tried to find, where the depricated api call comes from. But I'm using 24 buckets with…
anon6789
  • 179
  • 1
  • 6
8
votes
2 answers

Can't see application log in Google Cloud Logs

How can I view log messages on Google Cloud?: https://console.cloud.google.com/logs This is what I see in the terminal when I run dev_appserver.py (locally running): INFO 2016-05-16 14:00:45,118 module.py:787] default: "GET…
Petrus K.
  • 840
  • 7
  • 27
  • 56
1
2 3
41 42