Showing Fluentd

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Here, we have a preinstalled Fluentd installation that you can use to practice your skills or to learn more about Fluentd. This lab provides a hands-on opportunity to experience and test Fluentd. In this lab, you will be able to work with Fluentd and its log file locations and also send data to Fluentd for review.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Log In to the Provided Server

Log in to the server as cloud_user with the provided password to ensure you can log in. The server has Fluentd preinstalled. When the file SERVER-READY is shown in the /home/cloud_user folder, then you can follow along with the tasks.

Use the Default Configuration to Receive Logs

In the how-to video for this lab, an example will be shown for receiving logs at the HTTP endpoint. This example will route the output to stdout. The log will be found at /var/log/td-agent/td-agent.log on the filesystem.

Modify `rsyslog` to Send Logs to Fluentd

The how-to video will also show an example of configuring rsyslog to send logs to Fluentd. Then the default config file for Fluentd will be changed to accept the log and output it to stdout.

Additional Resources

Log into the provided server with the provided username and password.

If you send text to the default web location via a POST option in curl, it will convert what you enter into JSON and output it to the standard Fluentd log.

Here is an example command.

curl -X POST -d 'json={"json":"This is a test message to show its working"}' http://localhost:8888/debug.test

You can examine the output in the /var/log/td-agent/td-agent.log log.

Note: When running commands, you may need to use sudo if root permissions are required.

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?