From 2e7a14a6d433869819d8da2b1d5453ad6b2d2e4e Mon Sep 17 00:00:00 2001 From: AndreasNefeli Date: Tue, 15 Jun 2021 03:30:41 +0000 Subject: [PATCH] Upload files to 'fluentd/files' --- fluentd/files/fluent.conf | 108 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 fluentd/files/fluent.conf diff --git a/fluentd/files/fluent.conf b/fluentd/files/fluent.conf new file mode 100644 index 0000000..c4c60ac --- /dev/null +++ b/fluentd/files/fluent.conf @@ -0,0 +1,108 @@ +# config + + @type stdout + + +# input + + @type tail + + path /var/log/*.log + path_key tailed_path + + tag stats.node + + # parse json + + @type json + + + pos_file /tmp/fluentd--1605454018.pos + + + +# input + + @type tail + + path /var/log-in/*/* + path_key tailed_path + + tag log.node + + # parse none + + @type none + + + pos_file /tmp/fluentd--1605454014.pos + + + +# output http + + @type copy +# +# @type mongo_replset +# +# database fluent +# collection logs +# nodes ondemand_playground_mongo1:27017,ondemand_playground_mongo2:27017,ondemand_playground_mongo3:27017,ondemand_playground_mongo4:27017,ondemand_playground_mongo5:27017,ondemand_playground_mongo6:27017,ondemand_playground_mongo7:27017 +# +# user myusername +# password mypassword +# +# replica_set rs1 +# 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 + + + + + + + + @type copy +# +# @type mongo_replset +# +# database swarmlabplaygroundstats +# collection logs +# nodes ondemand_playground_mongo1:27017,ondemand_playground_mongo2:27017,ondemand_playground_mongo3:27017,ondemand_playground_mongo4:27017,ondemand_playground_mongo5:27017,ondemand_playground_mongo6:27017,ondemand_playground_mongo7:27017 +# +# user myloguser +# password mylogpassword +# +# replica_set rs1 +# num_retries 60 +# capped +# capped_size 300m +# +# +# +# flush_interval 20s +# +# + + @type stdout + + +