menu
arrow_back

Customizing Stackdriver Logs for Kubernetes Engine with Fluentd

60m access · 60m completion
Connection Details

9 Credits

info_outline
This lab costs 9 Credits to run. You can purchase credits or a subscription under My Account.

01:00:00

Customizing Stackdriver Logs for Kubernetes Engine with Fluentd

GSP120

Overview

This lab describes how to customize Fluentd logging for a Google Kubernetes Engine cluster.

In this hands-on lab you will learn how to host a configurable Fluentd daemonset to send logs to Stackdriver instead of selecting the cloud logging option when creating the Kubernetes Engine cluster, which does not allow configuration of the Fluentd daemon. You will customize Kubernetes Engine logging to remove sensitive data from the Stackdriver logs.

We encourage students to type the commands themselves, to help encourage learning of the core concepts. Many labs will include a code block that contains the required commands. You can easily copy and paste the commands from the code block into the appropriate places during the lab.

What you'll do

  • Deploy a Fluentd daemonset on a Google Kubernetes Engine cluster, configured to log data to Google Stackdriver.
  • Customize Kubernetes Engine logging to remove sensitive data from the Stackdriver logs.

Prerequisites

  • Familiarity with standard Linux text editors such as vim, emacs, or nano.
  • It's assumed that you are already familiar with Kubernetes.

Join Qwiklabs to Read the Rest of this Lab...and More!

  • Get temporary access to the Google Cloud Console.
  • Nearly 100 labs from beginner to advanced levels.
  • Bite-sized so you can learn at your own pace.
Join to Start This Lab