Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Google Cloud Platform Administration

You're reading from  Google Cloud Platform Administration

Product type Book
Published in Sep 2018
Publisher Packt
ISBN-13 9781788624350
Pages 230 pages
Edition 1st Edition
Languages
Author (1):
Ranjit Singh Thakurratan Ranjit Singh Thakurratan
Profile icon Ranjit Singh Thakurratan
Toc

Table of Contents (11) Chapters close

Preface 1. Introduction to Google Cloud Platform 2. Google Cloud Platform Compute 3. Google Cloud Platform Storage 4. Google Cloud Platform Networking 5. Google Cloud Platform Containers 6. Google Cloud Platform Operations 7. Google Cloud Platform Identity and Security 8. Google Cloud Platform Billing 9. Google Cloud Platform Tools 10. Other Books You May Enjoy

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime