- Lab
- A Cloud Guru
Use Fluentd via the Command Line
In this lab, you will be provided with a server that has Fluentd preinstalled for you. The purpose of this lab is to have you create a separate Fluentd configuration file that will send `syslog` output to the Fluentd stdout. This configuration file will be used via the command line. Once created, you will test that it is directing log entries to Fluentd.
Path Info
Table of Contents
-
Challenge
Create a Configuration File in the Home Folder
Create a new configuration file called
/home/cloud_user/fluentd-syslog.conf
. The configuration file should have code that accepts input from the rsyslog system on port5160
. -
Challenge
Configure the rsyslog Config File to Send Output to Fluentd
Edit the
rsyslog
configuration file to send a copy of its log output to the Fluentd port used in the new configuration file and restartrsyslog
. The port for the configuration should be5160
. -
Challenge
Launch and Validate Fluentd from the Command Line
Start Fluentd using the new configuration file you created by using the option to read in a configuration file via the command line.
Use another terminal and log into the provided lab server again. You should see this login being shown on the output from your still-running Fluentd instance when you go back to the original terminal.
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.