Brettski
Brettski

Reputation: 20101

Are the http access logs for Google Cloud functions?

We are using Google Cloud functions for the api layer. These functions are http-triggered. We are looking for logs of http requests made to the functions. Do such logs exist?

The goal is instrumentation on frequency, source, etc.

Upvotes: 2

Views: 338

Answers (1)

Martin Zeitler
Martin Zeitler

Reputation: 76807

You could use the Stackdriver Logging Client Libraries, which is the main logging provider for GCP. These logs may look different that common Apache/Nginx logs, but one can also log custom events. These logs exist, as soon as one connects that client, which then logs something. The mere advance is, that one doesn't have a log file and one there, but all the logs within a uniform, consolidated GUI (when using this with GCE containers, this even gets more obvious, when there are a few instances).

Upvotes: 1

Related Questions