Skip to content

Commit 5f8c1dc

Browse files
authored
Update kinesis for fluent-package (#548)
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
1 parent 9541705 commit 5f8c1dc

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

how-to-guides/kinesis-stream.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,28 @@ In this example, Fluentd does three \(3\) things:
2323

2424
3. It writes the buffered data to Amazon Kinesis periodically.
2525

26-
## Install
26+
## Prerequisites
2727

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

30-
* [Fluentd](http://fluentd.org/)
31-
* Apache \(with the Combined Log Format\)
30+
31+
* [Fluentd](https://www.fluentd.org/)
32+
* [Apache](https://httpd.apache.org/) (with the Combined Log Format)
33+
* [Kinesis Output plugin](https://github.com/awslabs/aws-fluent-plugin-kinesis)
3234

3335
You can install Fluentd via major packaging systems.
3436

3537
* [Installation](../installation/)
3638

3739
## Install Kinesis Plugin
3840

39-
Since Amazon Kinesis plugin is not bundled with `td-agent` package, please install it manually:
41+
If `out_kinesis_streams` (fluent-plugin-kinesis) is not installed yet, please install it manually.
4042

41-
```text
42-
$ sudo /usr/sbin/td-agent-gem install fluent-plugin-kinesis
43-
```
43+
See [Plugin Management](..//installation/post-installation-guide#plugin-management) section how to install fluent-plugin-kinesis on your environment.
4444

4545
## Configuration
4646

47-
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`.
47+
Let's start configuring Fluentd. If you used the deb/rpm package, Fluentd's config file is located at `/etc/fluent/fluentd.conf`.
4848

4949
### Tail Input
5050

@@ -54,7 +54,7 @@ For the input source, we will set up Fluentd to track the recent Apache logs \(t
5454
<source>
5555
@type tail
5656
path /var/log/apache2/access_log
57-
pos_file /var/log/td-agent/apache2.access_log.pos
57+
pos_file /var/log/fluent/apache2.access_log.pos
5858
<parse>
5959
@type apache2
6060
</parse>
@@ -126,13 +126,11 @@ For those who are interested in security, all communication between Fluentd and
126126

127127
## Test
128128

129-
Restart `td-agent` to make sure that the configuration change is available:
129+
Restart `fluentd` to make sure that the configuration change is available:
130130

131131
```text
132-
# init
133-
$ sudo /etc/init.d/td-agent restart
134132
# systemd
135-
$ sudo systemctl restart td-agent.service
133+
$ sudo systemctl restart fluentd
136134
```
137135

138136
To test the configuration, just have a couple of accesses to your Apache server. This example uses the `ab` \(Apache Bench\) program:

0 commit comments

Comments
 (0)