Fluentd Installation
Install Command
$ curl -L https://toolbelt.treasuredata.com/sh/install-amazon2-td-agent4.sh | sh
Installation Logs
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
104 838 104 838 0 0 1196 0 --:--:-- --:--:-- --:--:-- 1682
==============================
td-agent Installation Script
==============================
This script requires superuser access to install rpm packages.
You will be prompted for your password by sudo.
[sudo] password for user01:
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* epel: archivefedora.mirror.angkasa.id
treasuredata | 3.0 kB 00:00
treasuredata/primary_db | 21 kB 00:00
WALinuxAgent.noarch 2.2.45-1.el6 openlogic
adcli.x86_64 0.8.1-3.el6_10 updates
autofs.x86_64 1:5.0.5-140.el6_10.1 updates
bind-libs.x86_64 32:9.8.2-0.68.rc1.el6_10.8 updates
bind-utils.x86_64 32:9.8.2-0.68.rc1.el6_10.8 updates
binutils.x86_64 2.20.51.0.2-5.48.el6_10.1 updates
ca-certificates.noarch 2020.2.41-65.1.el6_10 updates
cups.x86_64 1:1.4.2-81.el6_10 updates
cups-libs.x86_64 1:1.4.2-81.el6_10 updates
curl.x86_64 7.19.7-54.el6_10 updates
dbus.x86_64 1:1.2.24-11.el6_10 updates
dbus-libs.x86_64 1:1.2.24-11.el6_10 updates
freetype.x86_64 2.3.11-19.el6_10 updates
ghostscript.x86_64 8.70-24.el6_10.2 updates
java-1.7.0-openjdk.x86_64 1:1.7.0.261-2.6.22.1.el6_10 updates
java-1.7.0-openjdk-demo.x86_64 1:1.7.0.261-2.6.22.1.el6_10 updates
java-1.7.0-openjdk-devel.x86_64 1:1.7.0.261-2.6.22.1.el6_10 updates
java-1.7.0-openjdk-javadoc.noarch 1:1.7.0.261-2.6.22.1.el6_10 updates
java-1.7.0-openjdk-src.x86_64 1:1.7.0.261-2.6.22.1.el6_10 updates
kernel.x86_64 2.6.32-754.35.1.el6 updates
kernel-firmware.noarch 2.6.32-754.35.1.el6 updates
kernel-headers.x86_64 2.6.32-754.35.1.el6 updates
libX11.x86_64 1.6.4-4.el6_10 updates
libX11-common.noarch 1.6.4-4.el6_10 updates
libcurl.x86_64 7.19.7-54.el6_10 updates
libcurl-devel.x86_64 7.19.7-54.el6_10 updates
libgudev1.x86_64 147-2.74.el6_10 updates
libipa_hbac.x86_64 1.13.3-60.el6_10.2 updates
libssh2.x86_64 1.4.2-3.el6_10.1 updates
libsss_idmap.x86_64 1.13.3-60.el6_10.2 updates
libudev.x86_64 147-2.74.el6_10 updates
microcode_ctl.x86_64 2:1.17-33.31.el6_10 updates
nfs-utils.x86_64 1:1.2.3-78.el6_10.2 updates
ntp.x86_64 4.2.6p5-15.el6.centos updates
ntpdate.x86_64 4.2.6p5-15.el6.centos updates
openssh.x86_64 5.3p1-124.el6_10 updates
openssh-clients.x86_64 5.3p1-124.el6_10 updates
openssh-server.x86_64 5.3p1-124.el6_10 updates
openssl.x86_64 1.0.1e-58.el6_10 updates
openssl-devel.x86_64 1.0.1e-58.el6_10 updates
perf.x86_64 2.6.32-754.35.1.el6 updates
polkit.x86_64 0.96-11.el6_10.1 updates
poppler.x86_64 0.12.4-12.el6_10.1 updates
poppler-utils.x86_64 0.12.4-12.el6_10.1 updates
python.x86_64 2.6.6-68.el6_10 updates
python-libipa_hbac.x86_64 1.13.3-60.el6_10.2 updates
python-libs.x86_64 2.6.6-68.el6_10 updates
python-paramiko.noarch 1.7.5-5.el6_10 updates
python-sss-murmur.x86_64 1.13.3-60.el6_10.2 updates
python-sssdconfig.noarch 1.13.3-60.el6_10.2 updates
samba-client.x86_64 3.6.23-53.el6_10 updates
samba-common.x86_64 3.6.23-53.el6_10 updates
samba-winbind.x86_64 3.6.23-53.el6_10 updates
samba-winbind-clients.x86_64 3.6.23-53.el6_10 updates
sos.noarch 3.2-63.el6.centos.4 updates
sssd.x86_64 1.13.3-60.el6_10.2 updates
sssd-ad.x86_64 1.13.3-60.el6_10.2 updates
sssd-client.x86_64 1.13.3-60.el6_10.2 updates
sssd-common.x86_64 1.13.3-60.el6_10.2 updates
sssd-common-pac.x86_64 1.13.3-60.el6_10.2 updates
sssd-ipa.x86_64 1.13.3-60.el6_10.2 updates
sssd-krb5.x86_64 1.13.3-60.el6_10.2 updates
sssd-krb5-common.x86_64 1.13.3-60.el6_10.2 updates
sssd-ldap.x86_64 1.13.3-60.el6_10.2 updates
sssd-proxy.x86_64 1.13.3-60.el6_10.2 updates
sudo.x86_64 1.8.6p3-29.el6_10.3 updates
td-agent.x86_64 4.3.0-1.amzn2 treasuredata
telnet.x86_64 1:0.17-49.el6_10 updates
tomcat-el-2.2-api.noarch 7.0.106-1.el6 epel
tomcat-jsp-2.2-api.noarch 7.0.106-1.el6 epel
tomcat-lib.noarch 7.0.106-1.el6 epel
tomcat-servlet-3.0-api.noarch 7.0.106-1.el6 epel
tzdata.noarch 2020d-1.el6 updates
udev.x86_64 147-2.74.el6_10 updates
vim-common.x86_64 2:7.4.629-5.el6_10.2 updates
vim-enhanced.x86_64 2:7.4.629-5.el6_10.2 updates
vim-filesystem.x86_64 2:7.4.629-5.el6_10.2 updates
vim-minimal.x86_64 2:7.4.629-5.el6_10.2 updates
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* epel: archivefedora.mirror.angkasa.id
Resolving Dependencies
--> Running transaction check
---> Package td-agent.x86_64 0:3.8.0-0.el6 will be updated
---> Package td-agent.x86_64 0:4.3.0-1.amzn2 will be an update
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit) for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: systemd for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: systemd for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.25)(64bit) for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: libncurses.so.6()(64bit) for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: libsasl2.so.3()(64bit) for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: libtinfo.so.6()(64bit) for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: td-agent-4.3.0-1.amzn2.x86_64
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.3-4.el6_6 will be installed
---> Package td-agent.x86_64 0:4.3.0-1.amzn2 will be an update
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit) for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: systemd for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: systemd for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.25)(64bit) for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: libncurses.so.6()(64bit) for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: libsasl2.so.3()(64bit) for package: td-agent-4.3.0-1.amzn2.x86_64
--> Processing Dependency: libtinfo.so.6()(64bit) for package: td-agent-4.3.0-1.amzn2.x86_64
--> Finished Dependency Resolution
Error: Package: td-agent-4.3.0-1.amzn2.x86_64 (treasuredata)
Requires: libtinfo.so.6()(64bit)
Error: Package: td-agent-4.3.0-1.amzn2.x86_64 (treasuredata)
Requires: systemd
Error: Package: td-agent-4.3.0-1.amzn2.x86_64 (treasuredata)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: Package: td-agent-4.3.0-1.amzn2.x86_64 (treasuredata)
Requires: libsasl2.so.3()(64bit)
Error: Package: td-agent-4.3.0-1.amzn2.x86_64 (treasuredata)
Requires: libc.so.6(GLIBC_2.25)(64bit)
Error: Package: td-agent-4.3.0-1.amzn2.x86_64 (treasuredata)
Requires: libncurses.so.6()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Installation completed. Happy Logging!
Start(Execute) & Checking Status Command
[user01@ht-qa init.d]$ sudo /etc/init.d/td-agent start
[sudo] password for user01:
td-agent td-agent: [ OK ]
[user01@ht-qa init.d]$ sudo /etc/init.d/td-agent status
td-agent is running [ OK ]
td-agent's log file path & config file template
file path
/etc/td-agent/td-agent.conf
config file template
####
## Output descriptions:
##
# Treasure Data (http://www.treasure-data.com/) provides cloud based data
# analytics platform, which easily stores and processes data from td-agent.
# FREE plan is also provided.
# @see http://docs.fluentd.org/articles/http-to-td
#
# This section matches events whose tag is td.DATABASE.TABLE
<match td.*.*>
@type tdlog
@id output_td
apikey YOUR_API_KEY
auto_create_table
<buffer>
@type file
path /var/log/td-agent/buffer/td
</buffer>
<secondary>
@type file
path /var/log/td-agent/failed_records
</secondary>
</match>
## match tag=debug.** and dump to console
<match debug.**>
@type stdout
@id output_stdout
</match>
####
## Source descriptions:
##
## built-in TCP input
## @see http://docs.fluentd.org/articles/in_forward
<source>
@type forward
@id input_forward
</source>
## built-in UNIX socket input
#<source>
# type unix
#</source>
# HTTP input
# POST http://localhost:8888/<tag>?json=<json>
# POST http://localhost:8888/td.myapp.login?json={"user"%3A"me"}
# @see http://docs.fluentd.org/articles/in_http
<source>
@type http
@id input_http
port 8888
</source>
## live debugging agent
<source>
@type debug_agent
@id input_debug_agent
bind 127.0.0.1
port 24230
</source>
####
## Examples:
##
## File input
## read apache logs continuously and tags td.apache.access
#<source>
# @type tail
# @id input_tail
# <parse>
# @type apache2
# </parse>
# path /var/log/httpd-access.log
# tag td.apache.access
#</source>
## File output
## match tag=local.** and write to file
#<match local.**>
# @type file
# @id output_file
# path /var/log/td-agent/access
#</match>
## Forwarding
## match tag=system.** and forward to another td-agent server
#<match system.**>
# @type forward
# @id output_system_forward
#
# <server>
# host 192.168.0.11
# </server>
# # secondary host is optional
# <secondary>
# <server>
# host 192.168.0.12
# </server>
# </secondary>
#</match>
## Multiple output
## match tag=td.*.* and output to Treasure Data AND file
#<match td.*.*>
# @type copy
# @id output_copy
# <store>
# @type tdlog
# apikey API_KEY
# auto_create_table
# <buffer>
# @type file
# path /var/log/td-agent/buffer/td
# </buffer>
# </store>
# <store>
# @type file
# path /var/log/td-agent/td-%Y-%m-%d/%H.log
# </store>
#</match>
Ref.]