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
5
votes
1 answer

GCP Cloud Logging take so much cost, and how to disable it?

Hello, I want to ask why service Cloud Logging take so much cost, and how Cloud Logging works? I want to disable with refere this link https://cloud.google.com/resource-manager/docs/organization-policy/disabling-cloud-logging but I got error.
5
votes
3 answers

Python Google Cloud Function Missing Log Entries

I'm experimenting with GCP's cloud functions and python for the first time and wanted to get python's logging integrated sufficiently so that they fit well with GCP's logging infrastructure (specifically so that severity levels are recognized, and…
5
votes
2 answers

How to show TypeScript source in Firebase Cloud Function callable stacktraces?

I have a set of Cloud Functions that perform CRUD-like functions to get an individual resource, list resources and so forth, getWidgetByURL, listWidgets, deleteWidget. For a broader context, these are written in a single src/service.ts file and the…
5
votes
1 answer

.NetCore log output wrong severity in GCP Stackdriver

The default log entry of a .netcore app is being written to the stdout and interpreted by the GCP Stackdriver as an info message, even if it is an error. Is there a way to write .netcore errors to the stderr or configure them somehow so that…
Kiramm
  • 331
  • 3
  • 19
5
votes
3 answers

Why do empty lines appear intermittently in Stackdriver logs?

I'm running a cloud function every minute. Blank lines (see logs below) appear in Stackdriver logs intermittently. I don't believe this is due to the function code I have written. Bug can be recreated with this main.py: import logging logger =…
5
votes
2 answers

Google App Engine why some Logs are not getting shown?

In Google App Engine Flexible environment many Logs are skipping, and not getting shown in the Logging console, and it is happening always, I am checking it on Stackdriver Logging section on Google Cloud dashboard, the Logs I am showing using…
5
votes
0 answers

Stackdriver does not show proper level for the logs written using slf4j with log4j2

I have a web application deployed on GAE. I am using log4j2 implementation of SLF4j for logging purpose. I can see all my logs on stackdriver console. But the level for all my logs is shown as info under stackdriver. It's not categorized properly…
5
votes
1 answer

Can Stackdriver Logging receive syslog protocol?

Does Stackdriver Logging have the ability to receive logs via the syslog protocol? I'm using the open source Heroku Logplex router to collect logs. Logplex allows you to set up a drain to send the aggregated logs, but I think it sends it using the…
Jesse Shieh
  • 4,660
  • 5
  • 34
  • 49
5
votes
2 answers

How can I log to Google Cloud Logging from an AngularJS application?

I'd like to be able to view client side errors in Google Cloud Log viewer. Is it possible to create log entries from an AngularJS application and if so how?
Jonas K
  • 4,215
  • 2
  • 24
  • 25
5
votes
1 answer

Log format for google cloud logging

I am try to figure out if it's possible to use log4j appender to output messages (log lines) in my google container engine application so that they can be properly handled by the google cloud logging agent that runs of the box. Is there a place…
Ankur Chauhan
  • 1,393
  • 2
  • 17
  • 37
4
votes
3 answers

Difference between storing Google Cloud Build logs in Cloud Logging vs storing them in GCS

Google Cloud Build allows us to store logs in either GCS or Cloud Logging or both or none. I just want to know what difference it makes when storing logs in GCS vs storing them in Cloud Logging. Maybe some of the things you can highlight…
4
votes
1 answer

"Only numeric data" error on logs-base metric GCP

I have use Ops agent to send log to Cloud Logging Uploaded logs And then I used these logs to create logs-base metric with field name is jsonPayload.data Create logs-base metric After that, I review logs of that metric to make sure input data is…
4
votes
2 answers

Is there a way to inspect request/response headers in a GCP (HTTP) Cloud Function without explicitly logging them?

I have tried both Logging and Traces but haven't found a way to see request headers. Is there a better way than explicitly logging req.headers?
4
votes
1 answer

set log severity on google cloud without using google-cloud-logging library

I am trying to correctly output logs on my service running on google cloud, and for the most part they are correctly identified (DEBUG and INFO logs, being sent to stdout, are marked as info, whereas WARNING, ERROR, and CRITICAL logs are sent to…
HitLuca
  • 1,040
  • 9
  • 33
4
votes
1 answer

BigQuery - Scheduled Query Update Notification Email

Is there a way to update the scheduled query notification email to something custom? By default it is the email of the creator, however, this is often a service account with no true email recipient. e.g with terraform provisioning, we would have a…
1 2
3
41 42