config
@type stdout
# input log
# input stats
# output mongo log*
@type copy
@type mongo_replset
database app_swarmlab
collection logs
nodes swarmlabmongo1:27017,swarmlabmongo2:27017,swarmlabmongo1:27017
user app_swarmlab
password app_swarmlab
replica_set rs0
num_retries 60
capped
capped_size 100m
flush_interval 20s
@type stdout
@type file
path /tmp/mylog
timekey 1d
timekey_use_utc true
timekey_wait 10s
# output mongo stats*
@type copy
@type mongo_replset
database app_swarmlab
collection logs
nodes swarmlabmongo1:27017,swarmlabmongo2:27017,swarmlabmongo1:27017
user swarmlab
password swarmlab
replica_set rs0
num_retries 60
capped
capped_size 100m
@type stdout