You can configure fluentd to send logs to a syslog server in addition
to Elasticsearch. This topic provides instructions for configuring fluentd to
send logs to syslog compatible collectors. However, it only provides guidelines for the syslog
configuration, as syslog parameters differ by version. Knowledge of how to configure a syslog
compatible collector is required to complete this configuration.
Complete the following steps:
fluentd to send logs to the syslog server.syslog server to accept logs from
fluentd.Complete the following steps on each fluentd node.
fluentd.conf file
(/opt/mapr/fluentd/fluentd-<version>/etc/fluentd/fluentd.conf). # <store>
# @type remote_syslog
# host 10.10.100.92
# port 51400
# severity debug
# tag fluentd
# </store>host parameter to the hostname/IP address of the receiving
syslog server.port parameter to match the port that the receiving
syslog server is expecting remote logging information on.fluentd service:
maprcli node services -name fluentd -nodes <space separated list of hostname/IPaddresses> -action restartfluentd node.In general, you need to perform the following steps on the syslog
collection server:
syslogd to listen for logs outside of the
syslog node. syslog handles the logs once it receives it. $SystemLogSocketName /run/systemd/journal/syslog#$ModLoad imudp
#$UDPServerRun 514 Set
UDPServerRun to 51400 fluentd
node to a log file named qa-node91.log.
if $fromhost-ip == '10.10.100.91' then /var/log/qa-node91.log
& ~fluentd
node.