- 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.
Table of Contents
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 file
SERVER-READYis shown in the
/home/cloud_userfolder, then you can follow along with the tasks.
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
The files are called
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.
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.
loggercommand can be used to send messages to
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.