{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"redocly_category":"Products","product_name":"Integration Hub","type":"markdown"},"seo":{"title":"Fluentd Reference","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":"fluentd-reference","__idx":0},"children":["Fluentd Reference"]},{"$$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":["The following files are installed by the rpm or Debian packages."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"fluent-package-6x","__idx":1},"children":["fluent-package 6.x"]},{"$$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":"Resource"},"children":["Resource"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Location"},"children":["Location"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Notes"},"children":["Notes"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Config Directory"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/etc/fluent/"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Config File"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/etc/fluent/fluentd.conf"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["This config will be picked-up by the startup script"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Startup Script"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/usr/lib/systemd/system/fluentd.service"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Log Directory"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/var/log/fluent/"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Plugin Directory"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/etc/fluent/plugin/"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your custom plugins go here."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ruby Interpreter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/opt/fluent/bin/ruby"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ruby is bundled with the package."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rubygems"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/opt/fluent/bin/fluent-gem"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bundled rubygems to install fluentd plugins. For example: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fluent-gem install fluent-plugin-mongo"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["jemalloc"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/opt/fluent/lib/libjemalloc.so"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://jemalloc.net/"},"children":["jemalloc"]}," is bundled together to avoid memory fragmentation. It is loaded by default in the startup script."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"supervision-privileges-and-network-ports","__idx":2},"children":["Supervision, Privileges and Network Ports"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When Fluentd starts, it launches 2 processes: parent and child. The parent process is managing the life cycle of the child process, and the child process handles actual log collection."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ ps w -C ruby -C fluentd --no-heading\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"26238 ? Sl 0:00 /opt/fluent/bin/ruby /opt/fluent/bin/fluentd --config /etc/fluent/fluentd.conf --log /var/log/fluent/fluentd.log\n26243 ? Sl 0:25 /opt/fluent/bin/ruby /opt/fluent/bin/fluentd --config /etc/fluent/fluentd.conf --log /var/log/fluent/fluentd.log --under-supervisor\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Both processes run as the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fluentd"]}," user under ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fluentd"]}," group and all forked subprocesses run as the same. This applies to any system call initiated by Fluentd as well. The agent configuration resides at ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/etc/fluent/fluentd.conf"]},". All configurations must be readable by the fluentd user."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following ports are open depending on your input."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["in_tail: nothing"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["in_forward: tcp/24224, udp/24224"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["in_unix: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/var/run/fluent/fluentd.sock"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For secure uploading to Treasure Data, you must open tcp/443 (https) for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["*.treasuredata.com"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"other-resources","__idx":3},"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"]}]}]}]},"headings":[{"value":"Fluentd Reference","id":"fluentd-reference","depth":1},{"value":"fluent-package 6.x","id":"fluent-package-6x","depth":2},{"value":"Supervision, Privileges and Network Ports","id":"supervision-privileges-and-network-ports","depth":2},{"value":"Other Resources","id":"other-resources","depth":2}],"frontmatter":{"seo":{"title":"Fluentd Reference"}},"lastModified":"2026-02-12T08:44:10.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/customer-data-platform/integration-hub/streaming/td-agent/td-agent-reference","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}