In this lab, you will be provided two servers that have fluentd pre installed. Your task is to send logs from `/var/log/messages` to the target fluentd server. You must also do what is required to use TLS to send the log entries. You will need to generate certificates using OpenSSL and perform all the configuration tasks required to get this up and running.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Configure source1 to Use TLS to Send Logs to the target Server
On the server
source1
, you need to configure the installed Fluentd so that messages from/var/log/messages
are sent to the server calledtarget
. You must also configure it so that it uses TLS to send the log entries.- Configure target to Receive Logs from source1 Using TLS
You need to do what is required, including generating a certificate using SSL and adding any configuration entries to that the server called
target
, so it can receive log entries via TLS from the server calledsource1
.- Check If Test Logs Are Received
Test that the changes have worked and any new entries to the
/var/log/messages
onsource1
are now being sent to the td-agent stdout ontarget
.The
logger
command can be used to send message to/var/log/messages
.