Browse Source

add fluentd

master
zeus 3 years ago
parent
commit
d699a7096b
  1. 46
      WriteToMongo/fluent/fluent.conf

46
WriteToMongo/fluent/fluent.conf

@ -42,30 +42,32 @@
# output mongo log* # output mongo log*
<match log.*> <match log.*>
@type copy @type copy
<store> <store>
#@type mongo_replset #@type mongo_replset
@type mongo @type mongo
#database app_swarmlab #database app_swarmlab
database fluentdb database fluentdb
#collection logs #collection logs
collection test collection test
#nodes swarmlabmongo1:27017,swarmlabmongo2:27017,swarmlabmongo1:27017 #nodes swarmlabmongo1:27017,swarmlabmongo2:27017,swarmlabmongo1:27017
nodes mongo.poc-datacollector_datacollector-net:27017 host mongo.poc-datacollector_datacollector-net
port 27017
#user app_swarmlab
#password app_swarmlab #user app_swarmlab
#password app_swarmlab
#replica_set rs0
num_retries 60
capped
capped_size 100m
<buffer>
flush_interval 20s
</buffer>
</store>
#replica_set rs0
num_retries 60
capped
capped_size 100m
<buffer>
flush_interval 20s
</buffer>
</store>
<store> <store>
@type stdout @type stdout
</store> </store>

Loading…
Cancel
Save