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

Loading…
Cancel
Save