티스토리 뷰

Server GPG key

$ wget -qO - https://packages.fluentbit.io/fluentbit.key | sudo apt-key add -

Update your sources lists

# /etc/apt/sources.list
deb https://packages.fluentbit.io/ubuntu/bionic bionic main

install ca-certificates

$ sudo apt-get install ca-certificates

update your repositories database

$ sudo apt-get update

Install TD-Agent Bit

$ sudo apt-get install td-agent-bit

systemd를 이용하여 service 실행

$ sudo service td-agent-bit start

systemd를 이용하여 service 상태 체크

$ sudo service td-agent-bit status
● td-agent-bit.service - TD Agent Bit
   Loaded: loaded (/lib/systemd/system/td-agent-bit.service; disabled; vendor preset: enabled)
   Active: active (running) since Wed 2021-10-06 18:35:10 KST; 16s ago
 Main PID: 16826 (td-agent-bit)
    Tasks: 3 (limit: 4915)
   CGroup: /system.slice/td-agent-bit.service
           └─16826 /opt/td-agent-bit/bin/td-agent-bit -c /etc/td-agent-bit/td-agent-bit.conf


Oct 06 18:35:20 test18 td-agent-bit[16826]: [0] cpu.local: [1633512915.327543177, {"cpu_p"=>8.312500, "user_p"=>5.000000, "system_p"=>3.312500, "cpu0.p_cpu"=>1.000000, "cpu0.p_user"=>0.000000, "cpu0.p_system"
Oct 06 18:35:20 test18 td-agent-bit[16826]: [1] cpu.local: [1633512916.327292631, {"cpu_p"=>9.312500, "user_p"=>5.562500, "system_p"=>3.750000, "cpu0.p_cpu"=>0.000000, "cpu0.p_user"=>0.000000, "cpu0.p_system"
Oct 06 18:35:20 test18 td-agent-bit[16826]: [2] cpu.local: [1633512917.327293135, {"cpu_p"=>9.312500, "user_p"=>5.750000, "system_p"=>3.562500, "cpu0.p_cpu"=>2.000000, "cpu0.p_user"=>1.000000, "cpu0.p_system"
Oct 06 18:35:20 test18 td-agent-bit[16826]: [3] cpu.local: [1633512918.327449317, {"cpu_p"=>9.937500, "user_p"=>5.687500, "system_p"=>4.250000, "cpu0.p_cpu"=>2.000000, "cpu0.p_user"=>1.000000, "cpu0.p_system"
Oct 06 18:35:20 test18 td-agent-bit[16826]: [4] cpu.local: [1633512919.327281779, {"cpu_p"=>8.437500, "user_p"=>4.750000, "system_p"=>3.687500, "cpu0.p_cpu"=>1.000000, "cpu0.p_user"=>0.000000, "cpu0.p_system"
Oct 06 18:35:25 test18 td-agent-bit[16826]: [0] cpu.local: [1633512920.327543373, {"cpu_p"=>8.250000, "user_p"=>4.062500, "system_p"=>4.187500, "cpu0.p_cpu"=>0.000000, "cpu0.p_user"=>0.000000, "cpu0.p_system"
Oct 06 18:35:25 test18 td-agent-bit[16826]: [1] cpu.local: [1633512921.327289911, {"cpu_p"=>7.937500, "user_p"=>4.937500, "system_p"=>3.000000, "cpu0.p_cpu"=>1.000000, "cpu0.p_user"=>0.000000, "cpu0.p_system"
Oct 06 18:35:25 test18 td-agent-bit[16826]: [2] cpu.local: [1633512922.327349438, {"cpu_p"=>9.437500, "user_p"=>5.562500, "system_p"=>3.875000, "cpu0.p_cpu"=>1.000000, "cpu0.p_user"=>1.000000, "cpu0.p_system"
Oct 06 18:35:25 test18 td-agent-bit[16826]: [3] cpu.local: [1633512923.327344381, {"cpu_p"=>9.687500, "user_p"=>5.812500, "system_p"=>3.875000, "cpu0.p_cpu"=>0.000000, "cpu0.p_user"=>0.000000, "cpu0.p_system"
Oct 06 18:35:25 test18 td-agent-bit[16826]: [4] cpu.local: [1633512924.327303874, {"cpu_p"=>7.375000, "user_p"=>4.187500, "system_p"=>3.187500, "cpu0.p_cpu"=>2.000000, "cpu0.p_user"=>1.000000, "cpu0.p_system"
댓글