- 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.
Table of Contents
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 port
Configure the rsyslog Config File to Send Output to Fluentd
rsyslogconfiguration file to send a copy of its log output to the Fluentd port used in the new configuration file and restart
rsyslog. The port for the configuration should be
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.