(01)Install Fluentd
Linux
1curl -fsSL https://toolbelt.treasuredata.com/sh/install-ubuntu-focal-td-agent4.sh | sudo shUnified log collector — route logs to Elasticsearch, S3, Kafka, and more
What is this?
Fluentd collects logs from servers and apps and forwards them to Elasticsearch, S3, or Kafka.
Step 01
1curl -fsSL https://toolbelt.treasuredata.com/sh/install-ubuntu-focal-td-agent4.sh | sudo shStep 02
1sudo tee /etc/td-agent/td-agent.conf << 'EOF'2<source>3 @type tail4 path /var/log/syslog5 pos_file /var/log/td-agent/syslog.pos6 tag system.syslog7 format none8</source>9<match system.**>10 @type stdout11</match>12EOF13sudo systemctl restart td-agentStep 03
1sudo systemctl status td-agent2sudo tail -f /var/log/td-agent/td-agent.logStep 04
1sudo systemctl status td-agent2sudo tail -f /var/log/td-agent/td-agent.log3sudo td-agent --config-test -c /etc/td-agent/td-agent.conf