{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"redocly_category":"Products","product_name":"Integration Hub","type":"markdown"},"seo":{"title":"Installing Fluentd on RHEL and CentOS","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"installing-fluentd-on-rhel-and-centos","__idx":0},"children":["Installing Fluentd on RHEL and CentOS"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td-agent was discontinued in December 2023 and has been replaced by ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["fluent-package"]},". The fluent-package is the official successor maintained by the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.cncf.io/projects/"},"children":["Cloud Native Computing Foundation"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["fluent-package is a stable distribution package of Fluentd. Learn more about the difference between ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.fluentd.org/faqs"},"children":["Fluentd and fluent-package"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["It's highly recommended that you set up ntpd on the nodes to sync the clock. Otherwise, the logs could contain invalid timestamps."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"install-fluent-package","__idx":2},"children":["Install fluent-package"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can install fluent-package using the following methods. We recommend using fluent-package 6 LTS as this is the currently maintained version."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"rhelcentosrocky-linux","__idx":3},"children":["RHEL/CentOS/Rocky Linux"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["RHEL 8, 9 and compatible distributions (Rocky Linux, AlmaLinux) 64-bit are currently supported."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Executing the installation script automatically installs fluent-package on your machine. The shell script registers a new rpm repository and installs the fluent-package rpm package."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# fluent-package 6 LTS (recommended)\ncurl -fsSL https://fluentd.cdn.cncf.io/sh/install-redhat-fluent-package6-lts.sh | sh\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"launch-daemon","__idx":4},"children":["Launch Daemon"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["fluent-package uses systemd to manage the service."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"systemd","__idx":5},"children":["systemd"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The systemd service script is provided to start, stop, or restart the agent."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"sudo systemctl start fluentd.service\nsudo systemctl status fluentd.service\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example output:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"● fluentd.service - fluentd: Fluentd based data collector\n   Loaded: loaded (/usr/lib/systemd/system/fluentd.service; disabled; vendor preset: disabled)\n   Active: active (running) since Thu 2024-01-01 15:12:27 PST; 6min ago\n     Docs: https://docs.fluentd.org/\n  Process: 53192 ExecStart=/opt/fluent/bin/fluentd --config /etc/fluent/fluentd.conf\n Main PID: 53198 (fluentd)\n   CGroup: /system.slice/fluentd.service\n           └─53198 /opt/fluent/bin/ruby /opt/fluent/bin/fluentd --config /etc/fluent/fluentd.conf\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you want to customize systemd behavior, put your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fluentd.service"]}," into ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/etc/systemd/system"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following commands are supported:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"sudo systemctl start fluentd.service\nsudo systemctl stop fluentd.service\nsudo systemctl restart fluentd.service\nsudo systemctl status fluentd.service\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Make sure your configuration file is located at ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/etc/fluent/fluentd.conf"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"other-resources","__idx":6},"children":["Other Resources"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For more information, see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.fluentd.org/"},"children":["Fluentd Documentation"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For those who are using Treasure Data, refer to the following document:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/fluentd-continuous-data-import-integration"},"children":["Continuous Data Import with Fluentd"]}]}]}]},"headings":[{"value":"Installing Fluentd on RHEL and CentOS","id":"installing-fluentd-on-rhel-and-centos","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Install fluent-package","id":"install-fluent-package","depth":2},{"value":"RHEL/CentOS/Rocky Linux","id":"rhelcentosrocky-linux","depth":3},{"value":"Launch Daemon","id":"launch-daemon","depth":2},{"value":"systemd","id":"systemd","depth":3},{"value":"Other Resources","id":"other-resources","depth":2}],"frontmatter":{"seo":{"title":"Installing Fluentd on RHEL and CentOS"}},"lastModified":"2026-02-12T08:44:10.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/customer-data-platform/integration-hub/streaming/td-agent/installing-td-agent-on-rhel-and-centos","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}