You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TD Output plugin is included in Fluentd's deb/rpm package \(`td-agent`\) by default. If you want to use RubyGems to install the plugin, please use `gem install fluent-plugin-td`.
27
+
For simplicity, this article will describe how to set up a one-node configuration.
28
+
Please install the above prerequisites software/services on the same node.
29
+
30
+
You can install Fluentd via major packaging systems.
27
31
28
32
*[Installation](../installation/)
29
33
34
+
### Install plugin
35
+
36
+
If `out_td` (fluent-plugin-td) is not installed yet, please install it manually.
37
+
38
+
See [Plugin Management](..//installation/post-installation-guide#plugin-management) section how to install fluent-plugin-td on your environment.
39
+
40
+
{% hint style='info' %}
41
+
If you use `fluent-package`, out_td (fluent-plugin-td) is bundled by default.
42
+
{% endhint %}
43
+
30
44
## Sign Up
31
45
32
46
Next, please [sign up](https://console.treasure-data.com/users/sign_up) to TD and get your `apikey` using the `td apikey:show` command:
@@ -42,7 +56,7 @@ kdfasklj218dsakfdas0983120
42
56
43
57
## Fluentd Configuration
44
58
45
-
Let's start configuring Fluentd. If you used the deb/rpm package, Fluentd's config file is located at `/etc/td-agent/td-agent.conf`. Otherwise, it is located at `/etc/fluentd/fluentd.conf`.
59
+
Let's start configuring Fluentd. If you used the deb/rpm package, Fluentd's config file is located at `/etc/fluent/fluentd.conf`.
46
60
47
61
### HTTP Input
48
62
@@ -67,7 +81,7 @@ The output destination will be Treasure Data. The output configuration should lo
67
81
use_ssl true
68
82
<buffer>
69
83
@type file
70
-
path /var/log/td-agent/buffer/td
84
+
path /var/log/fluent/buffer/td
71
85
</buffer>
72
86
</match>
73
87
```
@@ -81,7 +95,7 @@ To test the configuration, just post the JSON to Fluentd. Sending a `USR1` signa
81
95
```text
82
96
$ curl -X POST -d 'json={"action":"login","user":2}' \
83
97
http://localhost:8888/td.testdb.www_access
84
-
$ kill -USR1 `cat /var/run/td-agent/td-agent.pid`
98
+
$ kill -USR1 `cat /var/run/fluent/fluentd.pid`
85
99
```
86
100
87
101
Next, please use the `td tables` command. If the count is not zero, the data was imported successfully.
0 commit comments