Skip to content

Commit 40f4f98

Browse files
authored
Merge pull request #540 from kenhys/howto-mongodb
Update mongo howto for fluent-package
2 parents 6de7425 + 4e7387c commit 40f4f98

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

how-to-guides/apache-to-mongodb.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,28 @@ Fluentd does these three \(3\) things:
3030
For simplicity, this article will describe how to set up a one-node configuration. Please install the following software on the same node:
3131

3232
* [Fluentd](http://fluentd.org/)
33-
* [MongoDB Output Plugin](../output/mongo.md)
3433
* [MongoDB](http://www.mongodb.org/)
3534
* Apache \(with the Combined Log Format\)
3635

37-
The MongoDB Output plugin is included in the latest version of Fluentd's deb/rpm package. If you want to use RubyGems to install the plugin, please use `gem install fluent-plugin-mongo`.
36+
You can install Fluentd via major packaging systems.
3837

3938
* [Installation](../installation/)
4039

4140
For MongoDB, please refer to the following downloads page:
4241

4342
* [MongoDB Downloads](http://www.mongodb.org/downloads)
4443

44+
## Install MongoDB Plugin
45+
46+
Since MongoDB plugin is not bundled with `fluent-package`, please install it manually:
47+
48+
```text
49+
$ sudo fluent-gem install fluent-plugin-mongo
50+
```
51+
4552
## Configuration
4653

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

4956
### Tail Input
5057

@@ -54,7 +61,7 @@ For the input source, we will set up Fluentd to track the recent Apache logs \(t
5461
<source>
5562
@type tail
5663
path /var/log/apache2/access_log
57-
pos_file /var/log/td-agent/apache2.access_log.pos
64+
pos_file /var/log/fluent/apache2.access_log.pos
5865
<parse>
5966
@type apache2
6067
</parse>

output/mongo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Fluentd enables your apps to insert records to MongoDB asynchronously with batch
1717

1818
## Install
1919

20-
`out_mongo` is not included in `td-agent`, by default. Fluentd gem users will need to install the `fluent-plugin-mongo` gem using the following command:
20+
`out_mongo` is not included in `fluent-package`, by default. Fluentd gem users will need to install the `fluent-plugin-mongo` gem using the following command:
2121

2222
```text
23-
$ fluent-gem install fluent-plugin-mongo
23+
$ sudo fluent-gem install fluent-plugin-mongo
2424
```
2525

2626
For more details, see [Plugin Management](../deployment/plugin-management.md).

output/mongo_replset.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Fluentd enables your apps to insert records to MongoDB asynchronously with batch
1717

1818
## Install
1919

20-
`out_mongo_replset` is not included in `td-agent`, by default. Fluentd gem users will need to install the `fluent-plugin-mongo` gem using the following command:
20+
`out_mongo_replset` is not included in `fluent-package`, by default. Fluentd gem users will need to install the `fluent-plugin-mongo` gem using the following command:
2121

2222
```text
23-
$ fluent-gem install fluent-plugin-mongo
23+
$ sudo fluent-gem install fluent-plugin-mongo
2424
```
2525

2626
## Example Configuration

0 commit comments

Comments
 (0)