From b11f6e0dc287e3591e48e1670066cb5e6cfac08b Mon Sep 17 00:00:00 2001 From: AndreasNefeli Date: Tue, 15 Jun 2021 03:31:10 +0000 Subject: [PATCH] Upload files to 'fluentd/files' --- fluentd/files/fluent-config-update.conf | 104 ++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 fluentd/files/fluent-config-update.conf diff --git a/fluentd/files/fluent-config-update.conf b/fluentd/files/fluent-config-update.conf new file mode 100644 index 0000000..a940b3a --- /dev/null +++ b/fluentd/files/fluent-config-update.conf @@ -0,0 +1,104 @@ +config + + @type stdout + + +# input log + + @type tail + + path /var/log/*.log + path_key tailed_path + + tag stats.node + + # parse json + + @type json + + + pos_file /tmp/fluentd--1605454018.pos + + + +# input stats + + @type tail + + path /var/log-in/*/* + path_key tailed_path + + tag log.node + + # parse none + + @type none + + + pos_file /tmp/fluentd--1605454014.pos + + + +# 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 + + +