Book Image

Google Cloud Platform Administration

By : Ranjit Singh Thakurratan
Book Image

Google Cloud Platform Administration

By: Ranjit Singh Thakurratan

Overview of this book

On-premise data centers are costly to manage. If you need a data center but don’t want to deal with a physical one, Google Cloud Platform (GCP) is the solution. With GCP, you can build, test, and deploy applications on Google’s infrastructure. Google Cloud Platform Administration begins with GCP fundamentals, with the help of which you will deploy your first app and gain an understanding of Google Cloud architecture and services. Furthermore, you will learn how to manage Compute, networking, and storage resources. As you make your way through the book, you will learn how to track and manage GCP’s usage, monitoring, and billing access control. You will also be able to manage your GCP's access and permissions. In the concluding chapters, you will explore a list of different developer tools for managing and interacting with the GCP platform. By the end of this book, you will have learned how to effectively deploy workloads on GCP.
Table of Contents (11 chapters)

Logging

Let's look at the logging feature for Stackdriver. If you recall from the earlier section, we installed the logging agent as part of our Stackdriver account setup. Click on Logging on the side bar tab to open a new window. You can select different resources, which include GCE Project, a GCE Firewall Rule, or even a GCE VM Instance:

Click on Load older logs to review these logs:

You can also filter using the Any log level option, or using the time frame:

Let's select our virtual machine instance and review its logs:

I intentionally stopped the Apache2 web server and noticed these new logs at the bottom:

Let's start the Apache2 web server and see whether the logs reflect this event. Click on the Jump to now button on top of the page to load the latest logs:

Now we'd like the logs to auto-populate. For this to happen, enable Log streaming:

This...