Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Use the Include Directive in Fluentd

In this lab, you have been provided with a Linux server that has Fluentd preinstalled. This Fluentd has been configured as a standard Fluentd installation. Two files are provided that will read the `/var/log/messages` and will send new contents of that log to the td-agent stdout. Your task is to take the two provided files and use the `include` option to add them to the Fluentd configuration file so they will be read when Fluentd is restarted. Then you will need to test to ensure it is working and sending the contents of the `/var/log/messages` log to the Fluentd log.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 30m
Published
Clock icon Aug 19, 2022

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Log In to the Provided Server

    Log in to the server as cloud_user with the provided password to ensure you can log in. When the file SERVER-READY is shown in the /home/cloud_user folder, then you can follow along with the tasks.

  2. Challenge

    Use the Two Provided Files and Add Them to the Configuration

    There are two provided files that have separate portions of a configuration that will send new content for the /var/log/messages log into the Fluentd stdout.

    Use whatever method is required to include those files into the /etc/td-agent/td-agent.conf configuration file.

    The files are called /etc/td-agent/messages-source-include.conf and /etc/td-agent/messages-match-include.conf.

  3. Challenge

    Start the td-agent via the CLI

    Use whatever command is required to have td-agent read the /etc/td-agent/td-agent.conf configuration file and run the commands inside.

  4. Challenge

    Test the Changes Have Worked

    Test that the changes have worked, and ensure that any new entries to the /var/log/messages are now being sent to the td-agent stdout.

    The logger command can be used to send messages to /var/log/messages.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans