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

TypeError: util.Long.fromValue is not a function - stackdriver

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response. process.env.GOOGLE_APPLICATION_CREDENTIALS="path to the credentials"; …
VAMSI AILA
  • 61
  • 1
  • 13
0
votes
1 answer

Cant send logs to Stackdrvier using latest version of google.cloud.logging.log4net from GCE instance

I referred the sample application to send logs using Log4net. The version of Nuget package used in the app is 1.0.0-beta05. When I update the Nuget package to the latest version(or any other stable version), I'm not able to send logs. Are there…
0
votes
0 answers

Google cloud logging has label

I can run the query labels:* or logName:* which works, however the following query doesn't match anything ,even though these labels exist: labels.user:* Reproducable example: Take any log resource and try labels:*, then see they all have some value…
aclowkay
  • 3,577
  • 5
  • 35
  • 66
0
votes
3 answers

How to get trace ID from code?

I am running a Java application on Google App Engine standard environment. Looking at the logs (in particular request_log), I can see a couple of interesting IDs such as trace_id and request_id for each request. Couple of questions: How are they…
0
votes
1 answer

How to enhance log entries for standard environment?

I have a Java application running on Google App Engine standard environment. I am able to log from it (using JUL). In standard environment, all the application log lines from a single web request are grouped into a single entry in the request_log.…
0
votes
1 answer

Google Cloud CDN get edge Location from logs

Currently the Google CDN has a new logging feature (https://cloud.google.com/cdn/docs/logging?hl=en). In contrast to AWS's Cloudfront that contains a "x-edge-location" field in their Access Logs, I cannot determine the traffic target on google…
0
votes
2 answers

Default tag on Stackdriver logs

how would be possible to send log to Stackdriver and decide which fields to show on the main line as in the embedded image with Browser version, http method, response status code, etc. ? Thanks
ziozec
  • 1
  • 1
0
votes
1 answer

Monitoring nginx on docker using stackdriver (gcloud hosted)

In order to monitor nginx (as an application) using stackdriver, is it sufficient to simply direct loggin to gcploggin driver or does one have to install the monitoring agent as well? Google Cloud logging on Docker.com Google Cloud website
0
votes
1 answer

Google app engine Flexible env how to download the logs

I am trying to download my Google App Engine Flexible Environment Logs to my Local Machine. I saw this link downloading-logs for Standard env but I didn't find any relevant information about the Flexible env. Can anyone please tell me how can I do…
0
votes
1 answer

Why my json logs have text-payload in the output, and not json-payload?

I am running Fluentd in GKE to get my containers' logs in Stackdriver using my customized Fluentd configuration file. Some logs which are json objects in the container log files at /var/log/containers/, are having text-payload at Stackdriver. I…
0
votes
1 answer

UnavailableError in Google Cloud Logging

I want to create a specific log inside my ruby script with google-cloud-logging gem installed. It works when I run it on my windows client but i get the following error when I run it on my linux server:…
0
votes
1 answer

Google Cloud Logging Ruby: Cannot find certain logs

I am having an issue finding logs from the google-cloud-logging ruby gem. I can find these logs through my google cloud console with the advanced search: jsonPayload.requestId=875325619 Which returns multiple results, one basic example: { insertId:…
0
votes
1 answer

Logs written to Stackdriver using Python client occasionally not being logged

Logs which I have written using the Python client occasionally don't appear in the web console. These should turn up in the global area under the default python logger. Only a very small number of them actually get there, with no real pattern as…
0
votes
1 answer

Using docker gcplogs (Google Cloud Logging driver) on digital ocean with docker compose

I currently have set up docker compose on digital ocean and would like to try out gcplogs (Google Cloud Logging driver). As I understand it I need to set my Google Application Default Credentials by downloading a json keyfile and setting…
Automatico
  • 12,420
  • 9
  • 82
  • 110
0
votes
1 answer

what is the query language used in google-cloud-logging

what is the query language used in google cloud logging? it doesn't seem to be lucene based? For example, below is a query…
Sahas
  • 3,046
  • 6
  • 32
  • 53