- Lab
- A Cloud Guru
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.
Path Info
Table of Contents
-
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 fileSERVER-READY
is shown in the/home/cloud_user
folder, then you can follow along with the tasks. -
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
. -
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. -
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
.
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.