- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
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.
Lab Info
Table of Contents
-
Challenge
Log In to the Provided Server
Log in to the server as
cloud_userwith the provided password to ensure you can log in. When the fileSERVER-READYis shown in the/home/cloud_userfolder, 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/messageslog into the Fluentd stdout.Use whatever method is required to include those files into the
/etc/td-agent/td-agent.confconfiguration file.The files are called
/etc/td-agent/messages-source-include.confand/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.confconfiguration 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/messagesare now being sent to the td-agent stdout.The
loggercommand can be used to send messages to/var/log/messages.
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.