Browse Source

edit fluent.conf

master
zeus 3 years ago
parent
commit
83538b1c46
  1. 72
      WriteToMongo/fluent/fluent.conf

72
WriteToMongo/fluent/fluent.conf

@ -98,39 +98,39 @@
</match>
# output mongo log*
<match stats.*>
@type copy
<store>
@type mongo
#copy_mode shallow
database fluentdb
collection stats
host mongo.poc-datacollector_datacollector-net
port 27017
num_retries 60
capped
capped_size 100m
<buffer>
flush_interval 30s
</buffer>
</store>
<store>
@type stdout
</store>
<store>
@type file
path /tmp/mylog
<buffer>
timekey 1d
timekey_use_utc true
timekey_wait 10s
</buffer>
</store>
</match>
#<match stats.*>
# @type copy
# <store>
# @type mongo
# #copy_mode shallow
#
# database fluentdb
# collection stats
# host mongo.poc-datacollector_datacollector-net
# port 27017
#
# num_retries 60
# capped
# capped_size 100m
#
#
# <buffer>
# flush_interval 30s
# </buffer>
# </store>
#
# <store>
# @type stdout
# </store>
#
# <store>
# @type file
# path /tmp/mylog1
# <buffer>
# timekey 1d
# timekey_use_utc true
# timekey_wait 10s
# </buffer>
# </store>
#
#</match>

Loading…
Cancel
Save