{"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 Ubuntu and Debian","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-ubuntu-and-debian","__idx":0},"children":["Installing Fluentd on Ubuntu and Debian"]},{"$$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."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"before-installation","__idx":1},"children":["Before Installation"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can learn more about how to prepare for the installation at ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.fluentd.org/installation/before-install"},"children":["Fluentd Installation Guide"]},"."]},{"$$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."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Learn more about how this version ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.fluentd.org/quickstart/fluent-package-v5-vs-td-agent"},"children":["compares to earlier versions"]},"."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Platform"},"children":["Platform"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Platform Version"},"children":["Platform Version"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Package"},"children":["Package"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ubuntu"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["24.04 Noble, 22.04 Jammy (64-bit)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["fluent-package 6 LTS"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Debian"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bookworm, Trixie (64-bit)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["fluent-package 6 LTS"]}]}]}]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.fluentd.org/installation/install-fluent-package"},"children":["Installation Guide"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"fluent-package-6-lts","__idx":3},"children":["fluent-package 6 LTS"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A shell script is provided to automate the installation process for each version. The shell script registers a new apt repository and installs the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fluent-package"]}," deb package."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For Ubuntu Noble (24.04):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -fsSL https://fluentd.cdn.cncf.io/sh/install-ubuntu-noble-fluent-package6-lts.sh | sh\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For Ubuntu Jammy (22.04):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -fsSL https://fluentd.cdn.cncf.io/sh/install-ubuntu-jammy-fluent-package6-lts.sh | sh\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For Debian Bookworm:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -fsSL https://fluentd.cdn.cncf.io/sh/install-debian-bookworm-fluent-package6-lts.sh | sh\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"launch-the-daemon-with-systemd","__idx":4},"children":["Launch the daemon with 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 (/lib/systemd/system/fluentd.service; disabled; vendor preset: enabled)\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      Tasks: 2 (limit: 4915)\n     Memory: 19.9M\n        CPU: 1.251s\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, place your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fluentd.service"]}," file in ",{"$$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":"p","attributes":{},"children":["The logs are located under ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/var/log/fluent"]},". After you modify the config file, restart the agent."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"other-resources","__idx":5},"children":["Other Resources"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.fluentd.org/"},"children":["Fluentd Documentation"]}]},{"$$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 Ubuntu and Debian","id":"installing-fluentd-on-ubuntu-and-debian","depth":1},{"value":"Before Installation","id":"before-installation","depth":2},{"value":"Install fluent-package","id":"install-fluent-package","depth":2},{"value":"fluent-package 6 LTS","id":"fluent-package-6-lts","depth":3},{"value":"Launch the daemon with systemd","id":"launch-the-daemon-with-systemd","depth":3},{"value":"Other Resources","id":"other-resources","depth":2}],"frontmatter":{"seo":{"title":"Installing Fluentd on Ubuntu and Debian"}},"lastModified":"2026-02-12T08:44:10.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/customer-data-platform/integration-hub/streaming/td-agent/installing-td-agent-on-ubuntu-and-debian","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}