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

Stackdriver Logging agent - GRPC::Unavailable

So I'm trying to get the Logging agent running on a google instance however when it runs the following error keeps occurring and logs are not being sent over to Stackdriver #0 failed to flush the buffer, and hit limit for retries. dropping all…
0
votes
0 answers

Nodejs cannot call Google Stackdriver Logging API behind proxy

I can run the following code on my laptop successfully with public wifi. const {Logging} = require('@google-cloud/logging'); let storageOptions = { projectId: 'project-01', keyFilename: 'mykey-c4426ff28f95.json' }; const logging = new…
0
votes
1 answer

How can I get logs for Cloud Functions that violate a Stackdriver alerting policy?

I am using Cloud Functions on Google Cloud Platform. I have set up a Stackdriver alerting policy to send me notifications when those functions exceed an execution time threshold. I would like to specifically get the logs for function instances that…
0
votes
1 answer

Only Export jsonPayload

Stackdriver logging export exports the entire json object, not just the jsonPayload I sent it. I am sending JSON data to stackdriver via the Python SDK. The data get ingested into Stackdriver fine, in the below format { insertId: "" jsonPaload:…
MSven
  • 36
  • 3
0
votes
1 answer

Writing logs with cloud logging

I'm having problems with using google-cloud/logging. My objective is to write to a file which is to be created weekly, and i have previously managed to do that. However since yesterday I kept getting this error: Error: 3 INVALID_ARGUMENT: A…
0
votes
1 answer

Stackdriver Logging Client Libraries - What happens during Google Downtime?

If you embed the Stackdrvier client library in your application and the Google stack driver API has downtime (Google documentation indicates 99.95% or 21.92 minutes of downtime/month) My question is: What will happen to my application during the…
0
votes
1 answer

Jump to search text in Stackdriver Logs Viewer

When looking for a specific problem in the logs, I will enter a search term in the Stackdriver Log Viewer filter. However, this is very awkward as I often need to look at previous or subsequent entries. I often have to re-enter a new search…
0
votes
1 answer

GCP logging payload from payload (Stackdrive)

I have the following logs: My Goal is to create a custom metric that I can use on Stackdriver to collect the amount (count) of items, in this case (chocolate, chips and cookies), however, even when I can see a low of record on the Metric, they…
0
votes
2 answers

Spring boot app engine logs not properly formatted

I've deployed a spring boot 2 application on appengine and its doing great. The only thing is that the standard logging mechanism clashes with the gcp logging system. What I get are hundred of info logs, even when there's an exception thrown or a…
Pievis
  • 1,954
  • 1
  • 22
  • 42
0
votes
0 answers

StackDriver Error Reporting Email Notification

In our multitenant environment, I would like to setup an alert notification(e.g. email) when our user's code has an exception. I was thinking of using the stackdriver error reporting api to send an error notification. Something like from…
0
votes
1 answer

Filtering logs using semicolon (":") in Google cloud logging with c# SDK

I am trying to list logs from Google Cloud Logging with a filter using C# SDK: var LogClient = LoggingServiceV2Client.Create(); ListLogEntriesRequest request = new ListLogEntriesRequest { Filter = "labels.SOME_LABEL: someValue…
Erez Ben Harush
  • 833
  • 9
  • 26
0
votes
0 answers

Google Cloud Platform random 404 on endpoints

I have two apps deployed on google cloud. One exposes an api, that is consumed by the other. But, sometimes, some of the request return a 404 http code. I cannot find a pattern to reproduce it yet. Any idea? 404 Cannot POST {link-to-api}
0
votes
2 answers

Can you configure what resources to monitor or does Stackdriver Logging automatically display all resources in use?

I'm interested in viewing logs in Stackdriver Logging using the filter: role_name:roles/owner However, I can see that the IAM Role resource is not in the list of monitored resources. (This list refers to the first drop down box in Stackdriver…
ellefc
  • 233
  • 2
  • 9
0
votes
1 answer

GKE Beta Logging experience - JSON Parsing lost

we log json content to STDOUT from our pods and GKE nicely sends them to stackdriver logging and it gets parsed into a jsonPayload within stackdriver logging. when we check the Try the new Beta Monitoring and Logging experience checkbox in the GKE…
0
votes
1 answer

Need help configuring condition for Stackdriver alert

I want to create a Stackdriver alert that trips when a certain logging metric occurs less than 20 times in the previous 30 minutes. I don't really need history over long periods of time for graphs or anything, i.e., I don't want to store data for a…