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.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- 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
.- 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
.- 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.