Use Fluentd via the Command Line

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

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 port 5160.

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 restart rsyslog. 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.

Additional Resources

You are exploring different software to use with logging, and you heard that Fluentd can be configured to accept logs from the rsyslog system.

You will use the preinstalled server and create a separate configuration file that can be used for this purpose.

To show that you can use a configuration file located in a different location than the regular configuration file, you will create a file called fluentd-syslog.conf that has the required configuration entries. You will then run the Fluentd command of td-agent manually and use whatever option is required to have it read and use that configuration.

You will then test that it is working.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?