Skip to content

Commit e23aa7e

Browse files
authored
Update td howto for fluent-package (#541)
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
1 parent 40f4f98 commit e23aa7e

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

how-to-guides/http-to-td.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,31 @@ The figure below shows the high-level architecture:
1616

1717
![TreasureData Architecture](../.gitbook/assets/treasuredata_architecture.png)
1818

19-
## Install
19+
## Prerequisites
2020

21-
For simplicity, this article will describe how to set up a one-node configuration. Please install the following software on the same node:
21+
The following software/services are required to be set up correctly:
2222

23-
* [Fluentd](http://fluentd.org/)
23+
* [Fluentd](https://www.fluentd.org/)
2424
* [TD Output Plugin](https://github.com/treasure-data/fluent-plugin-td)
25+
* Your Treasure Data (CDP) Services Account
2526

26-
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.
2731

2832
* [Installation](../installation/)
2933

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+
3044
## Sign Up
3145

3246
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
4256

4357
## Fluentd Configuration
4458

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`.
4660

4761
### HTTP Input
4862

@@ -67,7 +81,7 @@ The output destination will be Treasure Data. The output configuration should lo
6781
use_ssl true
6882
<buffer>
6983
@type file
70-
path /var/log/td-agent/buffer/td
84+
path /var/log/fluent/buffer/td
7185
</buffer>
7286
</match>
7387
```
@@ -81,7 +95,7 @@ To test the configuration, just post the JSON to Fluentd. Sending a `USR1` signa
8195
```text
8296
$ curl -X POST -d 'json={"action":"login","user":2}' \
8397
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`
8599
```
86100

87101
Next, please use the `td tables` command. If the count is not zero, the data was imported successfully.

0 commit comments

Comments
 (0)