Micsoftvn
  • 😙Micsoftvn
  • Use Cases
    • For Hacking
      • Kiểm thử mạng
      • Tor - Sock - Proxy
      • Poc
        • POC -draytek-vigor2960 ( CVE-2024-12987 )
    • For Security
      • Security website with htacess file
      • Incident Response
        • Cli AWS - Incident
        • Command line
      • Add basic Authen with Cloudflare
      • Haderning Apache
      • Thiết lập ANTT cho TLS
      • Check network traffic ( Ddos )
      • Tools
        • Tools for AWS
        • Fail2Ban Cheat Sheet
      • Các lỗi thường bảo mật với Websocket
    • For Engineering
      • Thiết lập cấu hình CMD log
      • Cấu hình CLI kết nối đến AWS
      • Sử dụng PET
      • 🔧 Gom Nhóm IP Thành Subnet CIDR Tối Ưu
      • PAC Proxy: Tự Động Cấu Hình Proxy Trong Môi Trường Doanh Nghiệp
      • Sử dụng Podman tạo base images Pentest
      • Tạo YUM Local Repository Trong Container CentOS 7 Sử Dụng Podman
    • For SysAdmin
      • Scripts
        • Bash Script Gen SSH key
        • Health check System
      • Install Oracle Java JDK 18 in Ubuntu 20.04
      • Run script on startup on Ubuntu 22.04
      • Remove Snap from Ubuntu
      • Config Network on Ubuntu Server
      • View Wifi Network Connection
      • Add user can access network interfaces
      • USB drive with QEMU
      • INSTALL AND MANAGE MULTIPLE JAVA JDK AND JRE VERSIONS ON UBUNTU
      • Export Windows Config
      • Auto Install Openvpn
      • Install Nginx Centos 7 or Docker
      • Install Mkdocs
      • Cheat Sheet
        • Cheat sheet Postgres
      • Cài Đặt Fluent Bit Trên Amazon Linux 2023 & Tạo Repository Offline
    • Installations
      • Install Helm on Ubuntu
  • Extras
    • Keyboard Shortcuts
Powered by GitBook
On this page
  • 🚀 Hướng Dẫn
  • 🔗 Repository chính thức cho Amazon Linux 2023
  • 🧰 Cài đặt Fluent Bit trên máy có Internet
  • 📦 Tạo repository offline để dùng nội bộ (air-gapped)
  • 🔗 Tài liệu tham khảo

Was this helpful?

  1. Use Cases
  2. For SysAdmin

Cài Đặt Fluent Bit Trên Amazon Linux 2023 & Tạo Repository Offline

🚀 Hướng Dẫn

Fluent Bit là một lightweight log processor rất phổ biến trong các hệ thống logging hiện đại. Với việc Amazon Linux 2023 đã chính thức ra mắt, nhiều hệ thống đang chuyển dịch từ AL2/CentOS sang AL2023, và nhu cầu cài Fluent Bit trên nền tảng này cũng tăng theo.

🔗 Repository chính thức cho Amazon Linux 2023

Fluent Bit đã cung cấp repository chính thức cho Amazon Linux 2023 tại địa chỉ:

https://packages.fluentbit.io/amazonlinux/2023/

❗ Lưu ý quan trọng

  • Kiến trúc hỗ trợ: Repo này hiện chỉ hỗ trợ kiến trúc x86_64. Nếu bạn dùng kiến trúc aarch64 (như AWS Graviton), repo này không hoạt động được.


🧰 Cài đặt Fluent Bit trên máy có Internet

1. Tạo file cấu hình repo Fluent Bit

cat > /etc/yum.repos.d/fluent-bit.repo <<EOF
[fluent-bit]
name=Fluent Bit
baseurl=https://packages.fluentbit.io/amazonlinux/2023/
gpgcheck=1
gpgkey=https://packages.fluentbit.io/fluentbit.key
enabled=1
EOF

2. Cài đặt Fluent Bit

sudo yum install -y fluent-bit

3. Khởi động Fluent Bit

sudo systemctl start fluent-bit

Bạn có thể kiểm tra trạng thái:

sudo systemctl status fluent-bit

📦 Tạo repository offline để dùng nội bộ (air-gapped)

Trong nhiều trường hợp bạn không có kết nối mạng (server offline hoặc security zone chặt chẽ), bạn có thể tạo một repo offline như sau:

Bước 1: Tải các RPM Fluent Bit và phụ thuộc

Thực hiện trên máy có internet:

dnf install --downloadonly --downloaddir=./fluentbit_rpms fluent-bit

Bước 2: Tạo metadata với createrepo

Cài createrepo_c nếu chưa có:

sudo dnf install -y createrepo_c

Tạo metadata cho thư mục RPM:

createrepo ./fluentbit_rpms

Bước 3: Chuyển repository đến server nội bộ

Sao chép toàn bộ thư mục fluentbit_rpms/ sang server cần cài Fluent Bit (dùng USB, SCP, rsync...)

Bước 4: Cấu hình repo offline trên server nội bộ

cat > /etc/yum.repos.d/fluent-bit-offline.repo <<EOF
[fluent-bit-offline]
name=Fluent Bit Offline
baseurl=file:///path/to/fluentbit_rpms
enabled=1
gpgcheck=0
EOF

Thay /path/to/fluentbit_rpms bằng đường dẫn thực tế.

Bước 5: Cài đặt Fluent Bit từ repo offline

sudo yum install fluent-bit

🔗 Tài liệu tham khảo


Bạn muốn mình xuất bản bài viết này thành file .md hoặc đăng lên blog cá nhân/GitHub Pages không?

PreviousCheat sheet PostgresNextInstallations

Last updated 1 day ago

Was this helpful?

Fluent Bit Repo List
Gist cài đặt Fluent Bit + cấu hình đầu vào/ra