Install by .dmg Package v4 (macOS)
Last updated
Was this helpful?
Last updated
Was this helpful?
This article explains how to install td-agent
, the stable Fluentd distribution package maintained by , on macOS.
td-agent
?Fluentd is written in Ruby for flexibility, with performance-sensitive parts in C. However, some users may have difficulty installing and operating a Ruby daemon.
That is why provides the stable distribution of Fluentd, called td-agent
. The differences between Fluentd and td-agent
can be found .
For macOS, td-agent
is distributed as .dmg
installer.
td-agent
This article contains deprecated td-agent (EOL) information: SHOULD NOT use td-agent anymore.
fluent-package
(successor of td-agent
) for macOS is not be shipped yet, we plan to migrate to homebrew ecosystem in the future.
Download and install the .dmg
package:
NOTE: If your OS is not supported, consider instead.
td-agent
Use launchctl
command to launch td-agent
. Make sure that the daemon is started correctly. Checks logs (/var/log/td-agent/td-agent.log
).
The configuration file is located at /etc/td-agent/td-agent.conf
and the plugin directory is at /etc/td-agent/plugin
.
To stop the agent, run this command:
The default configuration (/etc/td-agent/td-agent.conf
) is to receive logs at an HTTP endpoint and route them to stdout
. For td-agent
logs, see /var/log/td-agent/td-agent.log
.
You can post sample log records with curl
command:
On macOS, td-agent
does not provide any uninstallation app like rpm
/ deb
on Ubuntu.
To uninstall td-agent
from macOS, remove these files / directories:
/Library/LaunchDaemons/td-agent.plist
/etc/td-agent
/opt/td-agent
/var/log/td-agent
You are now ready to collect real logs with Fluentd. Refer to the following tutorials on how to collect data from various sources:
Basic Configuration
Application Logs
Examples
For further steps, follow these:
, , , ,
, ,
If this article is incorrect or outdated, or omits critical information, please . is an open-source project under . All components are available under the Apache 2 License.